From 69e1f67fbd625b81ebaccb1666dd83933bdc5c7c Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 22 Mar 2022 14:32:52 +0800 Subject: [PATCH] * Fix bug #21054. --- module/execution/control.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index e869d8bf2a..3a88e2f126 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1978,6 +1978,8 @@ class execution extends control $type = $this->config->vision == 'lite' ? 'kanban' : 'stage,sprint,kanban'; if(empty($execution) || strpos($type, $execution->type) === false) return print(js::error($this->lang->notFound) . js::locate('back')); + if($execution->type == 'kanban' and $this->app->tab == 'execution') return $this->locate(inlink('kanban', "executionID=$executionID")); + $this->app->loadLang('program'); /* Execution not found to prevent searching for .*/ @@ -2044,7 +2046,9 @@ class execution extends control $this->session->set('execLaneType', $browseType); $this->lang->execution->menu = new stdclass(); - $execution = $this->commonAction($executionID); + $execution = $this->commonAction($executionID); + if($execution->type != 'kanban' and $this->app->tab == 'execution') return $this->locate(inlink('view', "executionID=$executionID")); + $kanbanData = $this->loadModel('kanban')->getRDKanban($executionID, $browseType, $orderBy, 0, $groupBy); $executionActions = array();