* [bug#68845,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2026-01-05 07:50:28 +00:00
parent 3c70b2e111
commit 20885f0fb7
+9 -2
View File
@@ -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. */