diff --git a/module/common/model.php b/module/common/model.php index 836b67b452..6213c93030 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -605,7 +605,6 @@ class commonModel extends model if(strpos('|bug|execution|kanbanspace|', "|$objectType|") !== false) $needPrintDivider = true; $hasPriv = common::hasPriv($module, $createMethod); - if($hasPriv and $objectType == 'doc' and !common::hasPriv('doc', 'tableContents')) $hasPriv = false; if(!$hasPriv and $objectType == 'doc' and common::hasPriv('api', 'create')) $hasPriv = true; if(!$hasPriv) continue; diff --git a/module/doc/control.php b/module/doc/control.php index 292aca8197..76e954e343 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1282,7 +1282,7 @@ class doc extends control $queryID = $browseType == 'bySearch' ? (int)$param : 0; $params = "objectID=$objectID&libID=$libID&moduleID=0&browseType=bySearch&orderBy=$orderBy¶m=myQueryID"; if($this->app->rawMethod == 'tablecontents') $params = "type=$type&" . $params; - $actionURL = $this->createLink('doc', $this->app->rawMethod, $params); + $actionURL = $this->createLink($this->app->rawModule, $this->app->rawMethod, $params); if($libType == 'api') { $this->loadModel('api')->buildSearchForm($lib, $queryID, $actionURL, $libs, $type); diff --git a/module/doc/view/doclist.html.php b/module/doc/view/doclist.html.php index 7f6e2e26bd..e20f81e770 100644 --- a/module/doc/view/doclist.html.php +++ b/module/doc/view/doclist.html.php @@ -42,7 +42,6 @@ body {margin-bottom: 25px;} recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> -rawMethod == 'tablecontents') $vars = "type=$type&" . $vars;?>