Merge branch 'tsj_fixbug' into 'master'
* Fix bug. See merge request easycorp/zentaopms!7364
This commit is contained in:
@@ -93,7 +93,14 @@ class doc extends control
|
||||
$docs = array();
|
||||
if($type == 'mine')
|
||||
{
|
||||
$docs = $browseType == 'bysearch' ? $this->doc->getDocsBySearch('mine', 0, $libID, $queryID, $orderBy, $pager) : $this->doc->getDocs($libID, $moduleID, $browseType, $orderBy, $pager);
|
||||
if($browseType != 'bysearch' and !$libID)
|
||||
{
|
||||
$docs = array();
|
||||
}
|
||||
else
|
||||
{
|
||||
$docs = $browseType == 'bysearch' ? $this->doc->getDocsBySearch('mine', 0, $libID, $queryID, $orderBy, $pager) : $this->doc->getDocs($libID, $moduleID, $browseType, $orderBy, $pager);
|
||||
}
|
||||
}
|
||||
elseif($type == 'view' or $type == 'collect' or $type == 'createdby')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user