From b3dcd7506c73f82013d93461aa6a58132d79fa55 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 21 Jul 2018 17:18:41 -0400 Subject: [PATCH] crmRouteBinder - Don't convert arrays to objects --- ang/crmRouteBinder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ang/crmRouteBinder.js b/ang/crmRouteBinder.js index 16947a3d79..0dd232dd63 100644 --- a/ang/crmRouteBinder.js +++ b/ang/crmRouteBinder.js @@ -66,7 +66,7 @@ value = fmt.decode($route.current.params[options.param]); } else { - value = _.isObject(options.default) ? angular.extend({}, options.default) : options.default; + value = _.cloneDeep(options.default); ignorable[options.param] = fmt.encode(options.default); } $parse(options.expr).assign(_scope, value); -- 2.25.1