Use default_view or view. Fixes #1842

This commit is contained in:
James Brooks
2016-06-03 13:54:26 +01:00
parent c8f7e92124
commit 715eb02844

View File

@@ -84,7 +84,7 @@ class MetricController extends AbstractApiController
Binput::get('calc_type', 0),
Binput::get('display_chart', true),
Binput::get('places', 2),
Binput::get('view', 1),
Binput::get('default_view', Binput::get('view', 1)),
Binput::get('threshold', 5),
Binput::get('order', 0)
));
@@ -114,7 +114,7 @@ class MetricController extends AbstractApiController
Binput::get('calc_type'),
Binput::get('display_chart'),
Binput::get('places'),
Binput::get('view'),
Binput::get('default_view', Binput::get('view')),
Binput::get('threshold'),
Binput::get('order')
));