This commit is contained in:
宋辰轩
2023-04-24 15:09:07 +08:00
2 changed files with 11 additions and 8 deletions
+10 -7
View File
@@ -386,15 +386,18 @@ class docModel extends model
*/
public function getDocsByBrowseType($browseType, $queryID, $moduleID, $sort, $pager)
{
$allLibs = $this->getLibs('all');
$allLibIDList = array_keys($allLibs);
$hasPrivDocIdList = $this->getPrivDocs(0, $moduleID);
if($browseType == "all")
if($browseType == 'all')
{
$docs = $this->getDocs(0, 0, $browseType, $sort, $pager);
}
elseif($browseType == 'bySearch')
else
{
$allLibs = $this->getLibs('all');
$allLibIDList = array_keys($allLibs);
$hasPrivDocIdList = $this->getPrivDocs($allLibIDList, $moduleID);
}
if($browseType == 'bySearch')
{
if($queryID)
{
@@ -610,7 +613,7 @@ class docModel extends model
*/
public function getDocs($libID, $module, $browseType, $orderBy, $pager = null)
{
if(empty($libID)) return array();
if(empty($libID) and $browseType != 'all') return array();
$docIdList = $this->getPrivDocs($libID, $module, 'children');
$docs = $this->dao->select('*')->from(TABLE_DOC)
+1 -1
View File
@@ -1 +1 @@
v7.1.0
c6130b7da78d1ba89df374e4e755b4e18edfa89f