From f98ec5fc1c8624ee9a6aee4d016a71b2d630879d Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 23 Mar 2023 15:48:50 +0800 Subject: [PATCH] * Fix error. --- module/api/model.php | 1 + module/doc/css/tablecontents.css | 1 + module/doc/view/tablecontents.html.php | 2 ++ module/tree/model.php | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/module/api/model.php b/module/api/model.php index 75500fbe95..fcff050453 100644 --- a/module/api/model.php +++ b/module/api/model.php @@ -911,6 +911,7 @@ class apiModel extends model */ public function buildSearchForm($lib, $queryID, $actionURL, $libs = array(), $type = '') { + if(empty($lib)) return; $libPairs = array('' => '', $lib->id => $lib->name); $this->config->api->search['module'] = 'api'; if(!empty($libs)) diff --git a/module/doc/css/tablecontents.css b/module/doc/css/tablecontents.css index ac6c164744..beee0e6595 100644 --- a/module/doc/css/tablecontents.css +++ b/module/doc/css/tablecontents.css @@ -12,6 +12,7 @@ #mainContent #createDropdown ul {position: absolute;} #pageNav .dropdown-menu {max-height: inherit;} #mainContent > .panel {margin-bottom: 0; height: calc(100vh - 125px); overflow-y: auto;} +#mainContent > .main-col {overflow-x: hidden;} .no-content {width: 100px; height: 100px; margin: 0 auto;} .notice {text-align: center; padding-left: 15px; padding-top: 20px;} diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php index 3dffea9551..401843775d 100644 --- a/module/doc/view/tablecontents.html.php +++ b/module/doc/view/tablecontents.html.php @@ -17,7 +17,9 @@