diff --git a/module/execution/control.php b/module/execution/control.php index 83d8747b15..c8b48d451b 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2145,20 +2145,20 @@ class execution extends control $this->app->loadLang('story'); $this->app->loadLang('task'); $this->app->loadLang('bug'); + $this->loadModel('kanban'); /* Compatibility IE8. */ if(strpos($this->server->http_user_agent, 'MSIE 8.0') !== false) header("X-UA-Compatible: IE=EmulateIE7"); if($execution->lifetime == 'ops') { + $browseType = 'task'; unset($this->lang->kanban->type['story']); unset($this->lang->kanban->type['bug']); - $kanbanGroup = $this->loadModel('kanban')->getExecutionKanban($executionID, 'task', $groupBy); - } - else - { - $kanbanGroup = $this->loadModel('kanban')->getExecutionKanban($executionID, $browseType, $groupBy); + unset($this->lang->kanban->type['all']); } + + $kanbanGroup = $this->kanban->getExecutionKanban($executionID, $browseType, $groupBy); if(empty($kanbanGroup)) { $this->kanban->createExecutionLane($executionID, $browseType, $groupBy); diff --git a/module/execution/view/taskkanban.html.php b/module/execution/view/taskkanban.html.php index 86e9009b3e..2f4a0d4a2a 100644 --- a/module/execution/view/taskkanban.html.php +++ b/module/execution/view/taskkanban.html.php @@ -13,14 +13,7 @@