diff --git a/module/doc/control.php b/module/doc/control.php index 3335e01e46..76ba88cd19 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1125,7 +1125,7 @@ class doc extends control /* Set Custom. */ foreach(explode(',', $this->config->doc->customObjectLibs) as $libType) $customObjectLibs[$libType] = $this->lang->doc->customObjectLibs[$libType]; - $actionURL = $this->createLink('doc', 'browse', "lib=0&browseType=bySearch&queryID=myQueryID"); + $actionURL = $this->createLink('doc', 'tableContents', "type=$type&objectID=$objectID&libID=$libID&browseType=bySearch¶m=myQueryID"); $this->doc->buildSearchForm(0, array(), 0, $actionURL, $type); $moduleTree = $type == 'book' ? $this->doc->getBookStructure($libID) : $this->doc->getTreeMenu($type, $objectID, $libID, 0, $docID); diff --git a/module/doc/model.php b/module/doc/model.php index 5ab62fcd87..eaa031b44b 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -934,7 +934,7 @@ class docModel extends model if($this->app->getMethodName() == 'objectlibs') { $queryName = $type . 'Doc'; - $type = 'objectlibs'; + $type = 'objectLibs'; } if($this->app->rawMethod == 'contribute')