From 0ed35ef87aec61886896ce501ea1c539eedbe808 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 15 Oct 2015 22:48:10 -0400 Subject: [PATCH] entityRef - Use deep-merge to combine data-params and options --- js/Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Common.js b/js/Common.js index e60987d642..6b6fc03faa 100644 --- a/js/Common.js +++ b/js/Common.js @@ -421,7 +421,7 @@ CRM.strings = CRM.strings || {}; selectParams = {}; $el.data('api-entity', entity); $el.data('select-params', $.extend({}, $el.data('select-params') || {}, options.select)); - $el.data('api-params', $.extend({}, $el.data('api-params') || {}, options.api)); + $el.data('api-params', $.extend(true, {}, $el.data('api-params') || {}, options.api)); $el.data('create-links', options.create || $el.data('create-links')); $el.addClass('crm-form-entityref crm-' + entity.toLowerCase() + '-ref'); var settings = { -- 2.25.1