* fix bug #14059.
This commit is contained in:
@@ -1791,12 +1791,11 @@ class docModel extends model
|
||||
foreach($docs as $doc)
|
||||
{
|
||||
$objectID = 0;
|
||||
if($doc->type == 'product') $objectID = $doc->product;
|
||||
if($doc->type == 'project' or $doc->type == 'execution') $objectID = $doc->project;
|
||||
if($doc->type == 'product') $objectID = $doc->product;
|
||||
if($doc->type == 'project') $objectID = $doc->project;
|
||||
if($doc->type == 'execution') $objectID = $doc->execution;
|
||||
|
||||
$docType = ($doc->type == 'execution') ? 'project' : $doc->type;
|
||||
|
||||
$html .= '<li>' . html::a(inlink('objectLibs', "type={$docType}&objectID=$objectID&libID={$doc->lib}&docID={$doc->id}"), "<i class='icon icon-file-text'></i> " . $doc->title, '', "data-app='doc' title='{$doc->title}'") . '</li>';
|
||||
$html .= '<li>' . html::a(inlink('objectLibs', "type={$doc->type}&objectID=$objectID&libID={$doc->lib}&docID={$doc->id}"), "<i class='icon icon-file-text'></i> " . $doc->title, '', "data-app='doc' title='{$doc->title}'") . '</li>';
|
||||
}
|
||||
|
||||
$collectionCount = $this->dao->select('count(id) as count')->from(TABLE_DOC)
|
||||
|
||||
Reference in New Issue
Block a user