diff --git a/module/doc/model.php b/module/doc/model.php index 2ac0e3ab96..c13c496692 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -784,7 +784,7 @@ class docModel extends model $docCounts= $this->dao->select("module, count(id) as docCount")->from(TABLE_DOC) ->where('module')->in(array_keys($modules)) - ->groupBy('module') + ->andWhere('deleted')->eq(0) ->fetchPairs(); foreach($modules as $moduleID => $module) $modules[$moduleID]->docCount = isset($docCounts[$moduleID]) ? $docCounts[$moduleID] : 0; diff --git a/module/doc/view/browsebygrid.html.php b/module/doc/view/browsebygrid.html.php index b7332ebc0e..fafd7fc8d3 100644 --- a/module/doc/view/browsebygrid.html.php +++ b/module/doc/view/browsebygrid.html.php @@ -72,15 +72,15 @@ - $attachLib):?> + $attachLib):?>