diff --git a/common/lib/shared.js b/common/lib/shared.js index 511449b15fb..5dbc38dbe00 100644 --- a/common/lib/shared.js +++ b/common/lib/shared.js @@ -270,10 +270,15 @@ function flatten_json(object,root,array) { var obj = object[index] var rootname = root.length == 0 ? index : root + '.' + index; if(typeof obj == 'object' ) { - if(_.isArray(obj)) - array[rootname] = typeof obj === 'undefined' ? null : obj.join(','); - else + if(_.isArray(obj)) { + if(obj.length === 1 && _.isNumber(obj[0])) { + array[rootname] = parseFloat(obj[0]); + } else { + array[rootname] = typeof obj === 'undefined' ? null : obj.join(','); + } + } else { flatten_json(obj,rootname,array) + } } else { array[rootname] = typeof obj === 'undefined' ? null : obj; } diff --git a/js/app.js b/js/app.js index 063f494e3fb..81f4c9a8843 100644 --- a/js/app.js +++ b/js/app.js @@ -54,6 +54,9 @@ labjs.wait(function(){ .when('/dashboard/:type/:id', { templateUrl: 'partials/dashboard.html' }) + .when('/dashboard/:type/:id/:params', { + templateUrl: 'partials/dashboard.html' + }) .otherwise({ redirectTo: 'dashboard' }); diff --git a/panels/fields/editor.html b/panels/fields/editor.html index 7666d542adb..cea7c968beb 100644 --- a/panels/fields/editor.html +++ b/panels/fields/editor.html @@ -6,5 +6,5 @@