From fbf82cea44ad404bc0675a49be6d3974b5f11498 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 28 May 2024 09:56:39 +0800 Subject: [PATCH] * Fix bug #50197. --- module/programplan/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/programplan/model.php b/module/programplan/model.php index 692c29c1d0..b2dc91c426 100755 --- a/module/programplan/model.php +++ b/module/programplan/model.php @@ -533,7 +533,7 @@ class programplanModel extends model if($plan->type == 'stage' && (isset($parentTypes['sprint']) || isset($parentTypes['kanban']))) unset($parentStage[$key]); if(($plan->type == 'sprint' || $plan->type == 'kanban') && isset($parentTypes['stage'])) unset($parentStage[$key]); } - $parentStage[0] = $this->lang->programplan->emptyParent; + if($plan->type == 'stage') $parentStage[0] = $this->lang->programplan->emptyParent; ksort($parentStage); return $parentStage;