diff --git a/module/execution/control.php b/module/execution/control.php index f08c6ed378..92a51ab52a 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -282,7 +282,7 @@ class execution extends control /* Get tasks and group them. */ if(empty($groupBy))$groupBy = 'story'; - if(($groupBy == 'story') and ($execution->type == 'ops'))$groupBy = 'status'; + if(($groupBy == 'story') and ($execution->lifetime == 'ops')) $groupBy = 'status'; $sort = common::appendOrder($groupBy); $tasks = $this->loadModel('task')->getExecutionTasks($executionID, $productID = 0, $status = 'all', $modules = 0, $sort); $groupBy = str_replace('`', '', $groupBy); @@ -2657,6 +2657,7 @@ class execution extends control unset($this->lang->kanban->type['story']); unset($this->lang->kanban->type['bug']); unset($this->lang->kanban->type['all']); + unset($this->lang->kanban->group->task['story']); } if($groupBy == 'story' and $browseType == 'task' and !isset($this->lang->kanban->orderList[$orderBy])) $orderBy = 'id_asc'; diff --git a/module/execution/view/grouptask.html.php b/module/execution/view/grouptask.html.php index 87dc3aa96f..6a976a3da3 100644 --- a/module/execution/view/grouptask.html.php +++ b/module/execution/view/grouptask.html.php @@ -103,7 +103,7 @@ execution->groups as $key => $value):?> type == 'ops' && $key == 'story') continue; + if($execution->lifetime == 'ops' && $key == 'story') continue; $active = $key == $groupBy ? "class='active'" : ''; echo "