From daa076eea7185a3b67dbfed7b34e42f3049026df Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 3 Sep 2016 21:20:54 -0400 Subject: Convert time comparison chart to Vue.js component --- app/Analytic/EstimatedTimeComparisonAnalytic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Analytic/EstimatedTimeComparisonAnalytic.php') diff --git a/app/Analytic/EstimatedTimeComparisonAnalytic.php b/app/Analytic/EstimatedTimeComparisonAnalytic.php index d9aea32d..020478f0 100644 --- a/app/Analytic/EstimatedTimeComparisonAnalytic.php +++ b/app/Analytic/EstimatedTimeComparisonAnalytic.php @@ -41,8 +41,8 @@ class EstimatedTimeComparisonAnalytic extends Base foreach ($rows as $row) { $key = $row['is_active'] == TaskModel::STATUS_OPEN ? 'open' : 'closed'; - $metrics[$key]['time_spent'] = $row['time_spent']; - $metrics[$key]['time_estimated'] = $row['time_estimated']; + $metrics[$key]['time_spent'] = (float) $row['time_spent']; + $metrics[$key]['time_estimated'] = (float) $row['time_estimated']; } return $metrics; -- cgit v1.2.3