From 20885f0fb7e11f268fed8b94b7242a04b2cbbd7e Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 5 Jan 2026 07:50:28 +0000 Subject: [PATCH] * [bug#68845,done,0.2h] fix bug. --- module/project/model.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/module/project/model.php b/module/project/model.php index fc50e8b048..d9a90e5cdd 100755 --- a/module/project/model.php +++ b/module/project/model.php @@ -2422,9 +2422,16 @@ class projectModel extends model $this->lang->switcherMenu = $this->getSwitcher($projectID, $this->app->rawModule, $this->app->rawMethod); /* 无迭代项目不开启过程删除导航。 */ - if($this->config->edition != 'open' && !$this->loadModel('workflowgroup')->hasFeature((int)$project->workflowGroup, 'process')) + if($this->config->edition != 'open') { - unset($lang->project->menu->other['dropMenu']->pssp); + $this->loadModel('workflowgroup'); + if(!$this->workflowgroup->hasFeature((int)$project->workflowGroup, 'process')) unset($lang->project->menu->other['dropMenu']->pssp); + if(!$this->workflowgroup->hasFeature((int)$project->workflowGroup, 'deliverable')) + { + unset($lang->project->menu->deliverable); + unset($lang->project->menu->auditplan['subMenu']->deliverable); + } + if(!$this->workflowgroup->hasFeature((int)$project->workflowGroup, 'auditplan')) unset($lang->project->menu->other['dropMenu']->auditplan); } /* If projectID is set, cannot use homeMenu. */