From: Coleman Watts Date: Fri, 10 Jul 2015 19:05:34 +0000 (-0400) Subject: Fix contact sub-type profile field to use select2 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7ca3d518336dc77c3bd9d9133e498ab22db548bb;p=civicrm-core.git Fix contact sub-type profile field to use select2 --- diff --git a/CRM/Core/BAO/UFGroup.php b/CRM/Core/BAO/UFGroup.php index 137c57dfed..5f18788fdc 100644 --- a/CRM/Core/BAO/UFGroup.php +++ b/CRM/Core/BAO/UFGroup.php @@ -2022,8 +2022,7 @@ AND ( entity_id IS NULL OR entity_id <= 0 ) $subtypeList = $subtypes; } - $sel = $form->add('select', $name, $title, $subtypeList, $required); - $sel->setMultiple(TRUE); + $form->add('select', $name, $title, $subtypeList, $required, array('class' => 'crm-select2', 'multiple' => TRUE)); } elseif (in_array($fieldName, CRM_Contact_BAO_Contact::$_greetingTypes)) { //add email greeting, postal greeting, addressee, CRM-4575