diff --git a/module/doc/model.php b/module/doc/model.php index 5a65c679b9..9986e976db 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1875,10 +1875,10 @@ class docModel extends model if($doc->type == 'project') $objectID = $doc->project; if($doc->type == 'execution') $objectID = $doc->execution; - $app = $this->app->openApp; - if($app != 'doc') $app = $objectID ? $doc->type : 'doc'; + $tab = $this->app->openApp; + if($tab != 'doc') $tab = $objectID ? $doc->type : 'doc'; - $html .= '
  • ' . html::a(inlink('objectLibs', "type={$doc->type}&objectID=$objectID&libID={$doc->lib}&docID={$doc->id}"), " " . $doc->title, '', "data-app='$app' title='{$doc->title}'") . '
  • '; + $html .= '
  • ' . html::a(inlink('objectLibs', "type={$doc->type}&objectID=$objectID&libID={$doc->lib}&docID={$doc->id}"), " " . $doc->title, '', "data-app='$tab' title='{$doc->title}'") . '
  • '; } $collectionCount = $this->dao->select('count(id) as count')->from(TABLE_DOC)