From 4db0a786ae493e128fd695efca9fef2e439739a8 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 12 May 2025 05:34:24 +0000 Subject: [PATCH] * [task#143280,done,0.2h] fix bug. --- module/execution/control.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/execution/control.php b/module/execution/control.php index c5c9e55c51..3f0b668150 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -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')); }