This commit is contained in:
tianshujie
2023-04-14 10:01:52 +08:00
parent 079d9b1d5d
commit 4e07580434
2 changed files with 8 additions and 2 deletions
+6 -1
View File
@@ -401,7 +401,12 @@ class tree extends control
$this->view->optionMenu = $this->tree->getOptionMenu($module->root, $module->type, 0, $module->branch, 'noMainBranch|nodeleted');
}
if($type == 'doc') $this->view->libs = $this->loadModel('doc')->getLibs('all', $extra = 'withObject', '', 0, 'book');
if($type == 'doc')
{
$docLib = $this->loadModel('doc')->getLibById($module->root);
$objectID = isset($docLib->{$docLib->type}) ? $docLib->{$docLib->type} : 0;
$this->view->libs = $this->doc->getLibs($docLib->type, '', '', $objectID, 'book');
}
$this->view->module = $module;
$this->view->type = $type;