From a69e6720805b890d88b5d97ffeb7ba611e5581a0 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Sun, 1 Aug 2021 10:36:32 +0800 Subject: [PATCH] * Fix bug #13968. --- module/doc/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/control.php b/module/doc/control.php index 58e48493ab..ac0b2698ff 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -165,7 +165,7 @@ class doc extends control $libTypeList = $this->lang->doc->libTypeList; if(empty($products)) unset($libTypeList['product']); if(empty($projects)) unset($libTypeList['project']); - if(empty($executions) or $type == 'custom') unset($libTypeList['execution']); + if(empty($executions) or ($type == 'custom' and $this->config->systemMode == 'new')) unset($libTypeList['execution']); $this->view->groups = $this->loadModel('group')->getPairs(); $this->view->users = $this->user->getPairs('nocode');