Don't override existing data when updating metrics

This commit is contained in:
James Brooks 2016-02-29 21:24:11 +00:00
parent f30710c5a8
commit d4655112ca

View File

@ -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();