mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-13 07:22:13 +09:00
issue 70 change list check all, because session not use.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8847 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
569e972e07
commit
85f921f9e9
15 changed files with 66 additions and 107 deletions
|
|
@ -1747,19 +1747,12 @@ class documentController extends document {
|
|||
function procDocumentGetList()
|
||||
{
|
||||
if(!Context::get('is_logged')) return new Object(-1,'msg_not_permitted');
|
||||
// Taken from a list of selected sessions
|
||||
$flagList = $_SESSION['document_management'];
|
||||
if(count($flagList)) {
|
||||
foreach($flagList as $key => $val) {
|
||||
if(!is_bool($val)) continue;
|
||||
$documentSrlList[] = $key;
|
||||
}
|
||||
}
|
||||
$documentSrls = Context::get('document_srls');
|
||||
if($documentSrls) $documentSrlList = explode(',', $documentSrls);
|
||||
|
||||
if(count($documentSrlList) > 0) {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$documentList = $oDocumentModel->getDocuments($documentSrlList, $this->grant->is_admin);
|
||||
$this->add('document_list', $documentList);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1767,6 +1760,7 @@ class documentController extends document {
|
|||
$documentList = array();
|
||||
$this->setMessage($lang->no_documents);
|
||||
}
|
||||
$this->add('document_list', $documentList);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue