* [task#143280,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2025-05-12 14:36:58 +08:00
committed by 刘刚
parent 25ace0d3fe
commit 4db0a786ae
+7
View File
@@ -1107,6 +1107,7 @@ class execution extends control
{
if($project->model == 'waterfall') $isStage = true;
$parentStage = isset($output['parentStage']) ? $output['parentStage'] : 0;
$type = isset($output['type']) ? $output['type'] : '';
if($parentStage)
{
$parent = $this->execution->fetchById((int)$parentStage);
@@ -1118,6 +1119,12 @@ class execution extends control
}
}
}
else
{
unset($this->lang->execution->typeList['kanban']);
unset($this->lang->execution->typeList['sprint']);
}
$this->view->parentStage = $parentStage;
$this->view->parentStages = $this->loadModel('programplan')->getParentStageList($projectID, 0, 0, 'withparent|noclosed|' . ($isStage ? 'stage' : 'notstage'));
}