From 46ed212ba1fa682e3781f9cf53dee4327e1bdc2d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 27 Apr 2014 13:47:54 -0700 Subject: [PATCH] CRM-14165 - Fix options-edit to work with multiselects --- js/Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Common.js b/js/Common.js index fbc0defdb6..2df825d164 100644 --- a/js/Common.js +++ b/js/Common.js @@ -226,7 +226,7 @@ CRM.validate = CRM.validate || { $elect = $(this), val = $elect.val() || [], opts = removePlaceholder ? '' : '[value!=""]'; - if (typeof(val) !== 'array') { + if (!$.isArray(val)) { val = [val]; } $elect.find('option' + opts).remove(); -- 2.25.1