summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controller/Gantt.php2
-rw-r--r--app/Model/Task.php2
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);
}
}