* [bug#54768] The execution of the IPD project also has parent stage.

This commit is contained in:
hufangzhou
2025-01-13 09:47:18 +08:00
committed by 王于听
parent 9e29cf59ec
commit 04e99e6fef
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1086,7 +1086,7 @@ class execution extends control
$this->executionZen->setCopyProjects($project);
$isStage = isset($output['type']) && $output['type'] == 'stage';
if(!empty($project) && ($project->model == 'waterfall' || $project->model == 'waterfallplus'))
if(!empty($project) && in_array($project->model, $this->config->project->waterfallList))
{
$this->view->parentStage = isset($output['parentStage']) ? $output['parentStage'] : 0;
$this->view->parentStages = $this->loadModel('programplan')->getParentStageList($projectID, 0, 0, 'withparent|noclosed|' . ($isStage ? 'stage' : 'notstage'));