From 2425fd85c04e7ad6e571da1848bb8d4b54499394 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 22 Mar 2016 20:58:46 -0400 Subject: Force integer type for aggregated metrics --- app/Model/ProjectDailyColumnStats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/Model/ProjectDailyColumnStats.php b/app/Model/ProjectDailyColumnStats.php index 2bcc4d55..0706a110 100644 --- a/app/Model/ProjectDailyColumnStats.php +++ b/app/Model/ProjectDailyColumnStats.php @@ -165,7 +165,7 @@ class ProjectDailyColumnStats extends Base { foreach ($metrics as $metric) { if ($metric['day'] === $day && $metric['column_id'] == $column_id) { - return $metric[$field]; + return (int) $metric[$field]; } } -- cgit v1.2.3