From 7ca3d518336dc77c3bd9d9133e498ab22db548bb Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 10 Jul 2015 15:05:34 -0400 Subject: [PATCH] Fix contact sub-type profile field to use select2 --- CRM/Core/BAO/UFGroup.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.25.1