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; } ?> -
project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount) : sprintf($lang->project->summary, count($projectStats));?>
+
project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount) : sprintf($lang->project->summary, count($projectStats));?>
show('right', 'pagerjs');?> diff --git a/module/project/control.php b/module/project/control.php index 223f70fde3..4d21b444c4 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -1176,6 +1176,7 @@ class project extends control /* Process the openedBuild and resolvedBuild fields. */ $bugs = $this->bug->getProjectBugs($projectID, $productID, $branchID, $build, $type, $param, $sort, '', $pager); $bugs = $this->bug->processBuildForBugs($bugs); + $bugs = $this->bug->checkDelayedBugs($bugs); /* Get story and task id list. */ $storyIdList = $taskIdList = array(); diff --git a/module/project/view/browsebylist.html.php b/module/project/view/browsebylist.html.php index 354022aa8b..4080928b75 100644 --- a/module/project/view/browsebylist.html.php +++ b/module/project/view/browsebylist.html.php @@ -146,7 +146,7 @@ $closedCount = 0; } ?> -
project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount) : sprintf($lang->project->summary, count($projectStats));?>
+
project->allSummary, count($projectStats), $waitCount, $doingCount, $suspendedCount, $closedCount) : sprintf($lang->project->summary, count($projectStats));?>
show('right', 'pagerjs');?> @@ -174,7 +174,7 @@ $(function() var statistics = summary; var checkedStatistics = checkedSummary.replace('%total%', checkedTotal); - if(browseType == 'all' || browseType == 'undone') + if(browseType == 'all') { var checkedWait = $checkedRows.filter("[data-status=wait]").length; var checkedDoing = $checkedRows.filter("[data-status=doing]").length; diff --git a/module/user/view/task.html.php b/module/user/view/task.html.php index 8981fb14e0..b8ad733fa1 100644 --- a/module/user/view/task.html.php +++ b/module/user/view/task.html.php @@ -42,22 +42,20 @@ idAB);?> - priAB);?> - task->execution);?> task->name);?> + priAB);?> + statusAB);?> + task->execution);?> + task->deadlineAB);?> task->estimateAB);?> task->consumedAB);?> task->leftAB);?> - task->deadlineAB);?> - statusAB);?> createLink('task', 'view', "taskID=$task->id"), sprintf('%03d', $task->id));?> - task->priList, $task->pri, $task->pri);?> - createLink('execution', 'browse', "executionID=$task->executionID"), $task->executionName);?> team)) echo '' . $this->lang->task->multipleAB . ' ';?> parent > 0) echo '' . $this->lang->task->childrenAB . ' ';?> @@ -67,11 +65,13 @@ ?> createLink('task', 'view', "taskID=$task->id", '', $onlybody, $task->project), $task->name, null, "class='$class' data-width='80%' style='color: $task->color' title='$task->name'");?> + task->priList, $task->pri, $task->pri);?> + processStatus('task', $task);?> + createLink('execution', 'browse', "executionID=$task->executionID"), $task->executionName);?> + deadline, 0, 4) > 0) echo '' . $task->deadline . '';?> estimate . $lang->execution->workHourUnit;?> consumed . $lang->execution->workHourUnit;?> left . $lang->execution->workHourUnit;?> - deadline, 0, 4) > 0) echo '' . $task->deadline . '';?> - processStatus('task', $task);?> diff --git a/module/user/view/todo.html.php b/module/user/view/todo.html.php index b692c5e8fb..d578a81040 100644 --- a/module/user/view/todo.html.php +++ b/module/user/view/todo.html.php @@ -46,8 +46,14 @@ + + status == 'wait') $waitCount ++;?> + status == 'doing') $doingCount ++;?> id;?> private and $this->app->user->account != $todo->account) ? $todo->name : html::a($this->createLink('todo', 'view', "id=$todo->id&from=company", '', true), $todo->name, '', "class='iframe'");?> @@ -64,7 +70,10 @@ - +