diff --git a/module/story/control.php b/module/story/control.php index 123e5413da..3a33fa09d9 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -987,8 +987,10 @@ class story extends control public function tasks($storyID, $projectID = 0) { $this->loadModel('task'); - $this->view->tasks = $this->task->getStoryTasks($storyID, $projectID); - $this->view->users = $this->user->getPairs('noletter'); + $tasks = $this->task->getStoryTasks($storyID, $projectID); + $this->view->tasks = $tasks; + $this->view->users = $this->user->getPairs('noletter'); + $this->view->summary = $this->loadModel('project')->summary($tasks); $this->display(); } diff --git a/module/story/view/tasks.html.php b/module/story/view/tasks.html.php index 9f2f8423b4..affda6a4c3 100644 --- a/module/story/view/tasks.html.php +++ b/module/story/view/tasks.html.php @@ -39,6 +39,11 @@ include '../../common/view/chart.html.php'; + + + + + diff --git a/module/task/model.php b/module/task/model.php index 8a8c005050..fc6df284b5 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1357,7 +1357,7 @@ class taskModel extends model */ public function getStoryTasks($storyID, $projectID = 0) { - $tasks = $this->dao->select('id, name, assignedTo, pri, status, estimate, consumed, `left`') + $tasks = $this->dao->select('id, name, assignedTo, pri, status, estimate, consumed, closedReason, `left`') ->from(TABLE_TASK) ->where('story')->eq((int)$storyID) ->andWhere('deleted')->eq(0)