From d4655112ca77be810be23930ed0bd662c73393d6 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 29 Feb 2016 21:24:11 +0000 Subject: [PATCH] Don't override existing data when updating metrics --- app/Http/Controllers/Api/MetricController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Api/MetricController.php b/app/Http/Controllers/Api/MetricController.php index 9cebc7b43..56f47a60c 100644 --- a/app/Http/Controllers/Api/MetricController.php +++ b/app/Http/Controllers/Api/MetricController.php @@ -109,10 +109,10 @@ class MetricController extends AbstractApiController Binput::get('suffix'), Binput::get('description'), Binput::get('default_value'), - Binput::get('calc_type', 0), + Binput::get('calc_type'), Binput::get('display_chart'), - Binput::get('places', 2), - Binput::get('view', 1) + Binput::get('places'), + Binput::get('view') )); } catch (QueryException $e) { throw new BadRequestHttpException();