Show closed tasks on the Gantt chart and fix rounding for task progress
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -195,6 +195,6 @@ class Task extends Base
|
||||
$position++;
|
||||
}
|
||||
|
||||
return (int) ($position * 100) / count($columns);
|
||||
return round(($position * 100) / count($columns), 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user