From 868a896ae4681a382fd76f4ae8a5c855396adcc6 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 9 Mar 2023 11:33:03 +0800 Subject: [PATCH] * Fix bug #32746. --- module/dev/model.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module/dev/model.php b/module/dev/model.php index 0a6d869234..cf4c7cd2af 100644 --- a/module/dev/model.php +++ b/module/dev/model.php @@ -820,6 +820,16 @@ class devModel extends model if(!in_array($type, $this->config->dev->navTypes)) return $menuTree; $mainNav = $type == 'second' ? $this->lang->mainNav : array(); + if($this->config->vision != 'open' and $type == 'second') + { + $flowNav = $this->dao->select('module')->from(TABLE_WORKFLOW) + ->where('buildin')->eq(0) + ->andWhere('vision')->eq($this->config->vision) + ->andWhere('navigator')->in('primary,secondary') + ->fetchPairs(); + foreach($flowNav as $nav) unset($mainNav->$nav); + } + if($type != 'second') { /* Set main nav list. */