* Task #3432
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,11 @@ include '../../common/view/chart.html.php';
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="9"><?php echo $summary;?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user