CRM-14165 - Fix options-edit to work with multiselects
authorColeman Watts <coleman@civicrm.org>
Sun, 27 Apr 2014 20:47:54 +0000 (13:47 -0700)
committerColeman Watts <coleman@civicrm.org>
Sun, 27 Apr 2014 20:47:54 +0000 (13:47 -0700)
js/Common.js

index fbc0defdb69ba16318b7118c248ffb6ca2cbfe28..2df825d16443ca3e0251397b43802f47812be68c 100644 (file)
@@ -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();