Merge branch 'tsj_fixbug' into 'master'

* Fix bug.

See merge request easycorp/zentaopms!7364
This commit is contained in:
王怡栋
2023-04-11 08:45:18 +00:00
+8 -1
View File
@@ -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')
{