summaryrefslogtreecommitdiff
path: root/app/Model/Task.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-20 21:26:42 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-20 21:26:42 -0400
commit1484b1c39cac6af68038420b8525620a5424d4ab (patch)
tree151bac4a4312f439ea17f32dd6d766da7e50a5ab /app/Model/Task.php
parent5b888a23454e369ebf383c3003497038ae2fbf5d (diff)
Show closed tasks on the Gantt chart and fix rounding for task progress
Diffstat (limited to 'app/Model/Task.php')
-rw-r--r--app/Model/Task.php2
1 files changed, 1 insertions, 1 deletions
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);
}
}