From 1484b1c39cac6af68038420b8525620a5424d4ab Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 20 Aug 2015 21:26:42 -0400 Subject: Show closed tasks on the Gantt chart and fix rounding for task progress --- app/Model/Task.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model/Task.php') 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); } } -- cgit v1.2.3