diff --git a/module/execution/control.php b/module/execution/control.php index 5d92d3ed7e..dc766565f8 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -516,7 +516,10 @@ class execution extends control $this->app->loadClass('pager', $static = true); $recTotal = count($tasks2Imported); $pager = new pager($recTotal, $recPerPage, $pageID); + $tasks2ImportedList = array_chunk($tasks2Imported, $pager->recPerPage, true); + $tasks2ImportedList = empty($tasks2ImportedList) ? $tasks2ImportedList : $tasks2ImportedList[$pageID - 1]; + $tasks2ImportedList = $this->loadModel('task')->processTasks($tasks2ImportedList); /* Save session. */ $this->app->session->set('taskList', $this->app->getURI(true), 'execution'); @@ -525,7 +528,7 @@ class execution extends control $this->view->pager = $pager; $this->view->position[] = html::a(inlink('browse', "executionID=$toExecution"), $execution->name); $this->view->position[] = $this->lang->execution->importTask; - $this->view->tasks2Imported = empty($tasks2ImportedList) ? $tasks2ImportedList : $tasks2ImportedList[$pageID - 1]; + $this->view->tasks2Imported = $tasks2ImportedList; $this->view->executions = $executions; $this->view->executionID = $execution->id; $this->view->fromExecution = $fromExecution; diff --git a/module/product/js/project.js b/module/product/js/project.js index ba0df1535d..e150fb18e3 100644 --- a/module/product/js/project.js +++ b/module/product/js/project.js @@ -39,4 +39,3 @@ $(function() }); }); }); - diff --git a/module/product/view/project.html.php b/module/product/view/project.html.php index bb9e0f67d1..ad6e28023b 100644 --- a/module/product/view/project.html.php +++ b/module/product/view/project.html.php @@ -118,7 +118,7 @@
diff --git a/module/program/js/project.js b/module/program/js/project.js index 0af27f8677..6bdfd10139 100644 --- a/module/program/js/project.js +++ b/module/program/js/project.js @@ -11,7 +11,7 @@ $(function() var statistics = summary; var checkedStatistics = checkedSummary.replace('%total%', checkedTotal); - if(browseType == 'all' || browseType == 'unclosed') + if(browseType == 'all') { var checkedWait = $checkedRows.filter("[data-status=wait]").length; var checkedDoing = $checkedRows.filter("[data-status=doing]").length; diff --git a/module/program/view/project.html.php b/module/program/view/project.html.php index c6b40c1f05..80d2695216 100644 --- a/module/program/view/project.html.php +++ b/module/program/view/project.html.php @@ -91,7 +91,7 @@ $closedCount = 0; } ?> -