diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-20 21:26:42 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-20 21:26:42 -0400 |
commit | 1484b1c39cac6af68038420b8525620a5424d4ab (patch) | |
tree | 151bac4a4312f439ea17f32dd6d766da7e50a5ab /app | |
parent | 5b888a23454e369ebf383c3003497038ae2fbf5d (diff) |
Show closed tasks on the Gantt chart and fix rounding for task progress
Diffstat (limited to 'app')
-rw-r--r-- | app/Controller/Gantt.php | 2 | ||||
-rw-r--r-- | app/Model/Task.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Gantt.php b/app/Controller/Gantt.php index 6f3fb5c7..f450bca3 100644 --- a/app/Controller/Gantt.php +++ b/app/Controller/Gantt.php @@ -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'); diff --git a/app/Model/Task.php b/app/Model/Task.php index ae8fc7a8..a1bbca93 100644 --- a/app/Model/Task.php +++ b/app/Model/Task.php @@ -195,6 +195,6 @@ class Task extends Base $position++; } - return (int) ($position * 100) / count($columns); + return round(($position * 100) / count($columns), 1); } } |