Merge branch '18.4' of https://git.zcorp.cc/easycorp/zentaopms into 184
This commit is contained in:
+10
-7
@@ -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 @@
|
||||
v7.1.0
|
||||
c6130b7da78d1ba89df374e4e755b4e18edfa89f
|
||||
|
||||
Reference in New Issue
Block a user