update to addSelect
authorTim Mallezie <tim.mallezie@chiro.be>
Mon, 2 Mar 2015 20:42:17 +0000 (21:42 +0100)
committerTim Mallezie <tim.mallezie@chiro.be>
Mon, 2 Mar 2015 20:42:17 +0000 (21:42 +0100)
CRM/Event/Form/SearchEvent.php

index 7314cf6980f18ebc4f7e3e93da02450f954f7912..ec2742435433d13a8229071e76080990a6f69c18 100644 (file)
@@ -61,10 +61,8 @@ class CRM_Event_Form_SearchEvent extends CRM_Core_Form {
       array(CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event', 'title'))
     );
 
-    $event_type = CRM_Core_OptionGroup::values('event_type', FALSE);
-
-    $this->add('select', 'event_type_id', ts('Event type'), $event_type, FALSE, array('class' => 'crm-select2 huge', 'multiple' => TRUE));
-
+    $this->addSelect('event_type_id', array('multiple' => TRUE));
+    
     $eventsByDates = array();
     $searchOption = array(ts('Show Current and Upcoming Events'), ts('Search All or by Date Range'));
     $this->addRadio('eventsByDates', ts('Events by Dates'), $searchOption, array('onclick' => "return showHideByValue('eventsByDates','1','id_fromToDates','block','radio',true);"), "<br />");