Show closed tasks on the Gantt chart and fix rounding for task progress

This commit is contained in:
Frederic Guillot
2015-08-20 21:26:42 -04:00
parent 5b888a2345
commit 1484b1c39c
3 changed files with 31 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ class Gantt extends Base
{
$project = $this->getProject();
$sorting = $this->request->getStringParam('sorting', 'board');
$filter = $this->taskFilter->gantt()->filterByProject($project['id'])->filterByStatus(TaskModel::STATUS_OPEN);
$filter = $this->taskFilter->gantt()->filterByProject($project['id']);
if ($sorting === 'date') {
$filter->query->asc(TaskModel::TABLE.'.date_started')->asc(TaskModel::TABLE.'.date_creation');