* Fix bug #12670.
This commit is contained in:
@@ -731,7 +731,7 @@ class actionModel extends model
|
||||
if(is_numeric($projectID)) $executions = $this->loadModel('execution')->getPairs($projectID);
|
||||
|
||||
$this->loadModel('doc');
|
||||
$libs = $this->doc->getLibs('all');
|
||||
$libs = $this->doc->getLibs('includeDeleted');
|
||||
$docs = $this->doc->getPrivDocs(array_keys($libs), 0, 'all');
|
||||
|
||||
$actionCondition = $this->getActionCondition();
|
||||
|
||||
@@ -37,10 +37,10 @@ class docModel extends model
|
||||
*/
|
||||
public function getLibs($type = '', $extra = '', $appendLibs = '', $objectID = 0)
|
||||
{
|
||||
if($type == 'all')
|
||||
if($type == 'all' or $type == 'includeDeleted')
|
||||
{
|
||||
$stmt = $this->dao->select('*')->from(TABLE_DOCLIB)
|
||||
->where('deleted')->eq(0)
|
||||
->beginIF($type == 'all')->where('deleted')->eq(0)->fi()
|
||||
->orderBy('id_desc')
|
||||
->query();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user