diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-09-03 21:20:54 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-09-03 21:20:54 -0400 |
commit | daa076eea7185a3b67dbfed7b34e42f3049026df (patch) | |
tree | 88ee41cdffc98bcae415dcd2e88787f249a787db /app/Analytic/EstimatedTimeComparisonAnalytic.php | |
parent | ef8ddb59c94e24383531e52371b70b595dff8e24 (diff) |
Convert time comparison chart to Vue.js component
Diffstat (limited to 'app/Analytic/EstimatedTimeComparisonAnalytic.php')
-rw-r--r-- | app/Analytic/EstimatedTimeComparisonAnalytic.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; |