diff --git a/module/execution/control.php b/module/execution/control.php index 1afaef1b7b..a563257356 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1329,7 +1329,7 @@ class execution extends control $this->view->position[] = $this->view->title; $this->view->executions = array('' => '') + $this->execution->getList($projectID); $this->view->groups = $this->loadModel('group')->getPairs(); - $this->view->allProducts = array(0 => '') + $this->loadModel('product')->getProductPairsByProject($projectID); + $this->view->allProducts = array(0 => '') + $this->loadModel('product')->getProductPairsByProject($projectID, 'noclosed'); $this->view->acl = $acl; $this->view->plan = $plan; $this->view->name = $name; @@ -1882,9 +1882,9 @@ class execution extends control ->fetchGroup('root', 'account'); $projectCount = 0; - $kanbanGroup = array(); $statusCount = array(); $myExecutions = array(); + $kanbanGroup = array(); foreach(array_keys($projects) as $projectID) { foreach(array_keys($this->lang->execution->statusList) as $status) @@ -1909,7 +1909,7 @@ class execution extends control krsort($kanbanGroup); $this->view->title = $this->lang->execution->executionKanban; - $this->view->kanbanGroup = array($myExecutions) + $kanbanGroup; + $this->view->kanbanGroup = empty($myExecutions) ? $kanbanGroup : array($myExecutions) + $kanbanGroup; $this->view->projects = $projects; $this->view->projectCount = $projectCount; $this->view->statusCount = $statusCount; diff --git a/module/execution/view/ajaxgetdropmenu.html.php b/module/execution/view/ajaxgetdropmenu.html.php index 759fb6a7a6..9a8f6f0999 100644 --- a/module/execution/view/ajaxgetdropmenu.html.php +++ b/module/execution/view/ajaxgetdropmenu.html.php @@ -73,7 +73,12 @@ foreach($executions as $projectID => $projectExecutions) $others++; } - else if($execution->status == 'done' or $execution->status == 'closed') $closedExecutionsHtml .= html::a(sprintf($link, $execution->id), $execution->name, '', "class='$selected' title='{$execution->name}' data-key='" . zget($executionsPinYin, $execution->name, '') . "' data-app='{$this->app->openApp}'"); + else if($execution->status == 'done' or $execution->status == 'closed') + { + $closedExecutionsHtml .= html::a(sprintf($link, $execution->id), $execution->name, '', "class='$selected' title='{$execution->name}' data-key='" . zget($executionsPinYin, $execution->name, '') . "' data-app='{$this->app->openApp}'"); + + if($selected == 'selected') $tabActive = 'closed'; + } /* If the execution is the last one in the project, print the closed label. */ if(!isset($projectExecutions[$index + 1])) @@ -90,8 +95,8 @@ foreach($executions as $projectID => $projectExecutions)
+ -