From 5458aeeff9b38ce46574d7d438d216d14d31423f Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 22 Mar 2022 15:54:03 +0800 Subject: [PATCH] * Delete useless judgment conditions. --- module/execution/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 3a88e2f126..b68064b551 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1978,7 +1978,7 @@ 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")); + if($execution->type == 'kanban') return $this->locate(inlink('kanban', "executionID=$executionID")); $this->app->loadLang('program'); @@ -2047,7 +2047,7 @@ class execution extends control $this->lang->execution->menu = new stdclass(); $execution = $this->commonAction($executionID); - if($execution->type != 'kanban' and $this->app->tab == 'execution') return $this->locate(inlink('view', "executionID=$executionID")); + if($execution->type != 'kanban') return $this->locate(inlink('view', "executionID=$executionID")); $kanbanData = $this->loadModel('kanban')->getRDKanban($executionID, $browseType, $orderBy, 0, $groupBy); $executionActions = array();