From c5c9fd7835513466a2907328c7295bb3b312cc02 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 13 Feb 2014 16:37:06 -0800 Subject: [PATCH] CRM-13929 Fix add new js --- js/Common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/Common.js b/js/Common.js index ebb90d1bb3..8b74a64f0a 100644 --- a/js/Common.js +++ b/js/Common.js @@ -374,7 +374,8 @@ CRM.validate = CRM.validate || { dialog: {width: 500, height: 'auto'} }).on('crmFormSuccess', function(e, data) { if ($el.select2('container').hasClass('select2-container-multi')) { - var selection = $el.select2('data').push(data); + var selection = $el.select2('data'); + selection.push(data); $el.select2('data', selection); } else { $el.select2('data', data); -- 2.25.1