From aedd8065548a6aecf714d48727fb20f3efe60406 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Fri, 28 Feb 2025 07:49:58 +0000 Subject: [PATCH] * [bug#60177,done,0.2h] fix bug. --- module/execution/control.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index b0708a3ed3..fbb9c73d1f 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1801,7 +1801,16 @@ class execution extends control $this->execution->setMenu($executionID); $execution = $this->execution->getByID($executionID); $features = $this->execution->getExecutionFeatures($execution); - if(!$features['story']) + + if($execution->lifetime == 'ops') + { + $browseType = $browseType == 'all' ? 'task' : $browseType; + unset($this->lang->kanban->type['all']); + unset($this->lang->kanban->type['story']); + unset($this->lang->kanban->type['bug']); + unset($this->lang->kanban->type['parentStory']); + } + elseif(!$features['story']) { $browseType = 'task'; unset($this->lang->kanban->group->task['story']);