From 46a273711147f7b441399b27f8f9bb2bf31548d9 Mon Sep 17 00:00:00 2001 From: Tim Mallezie Date: Mon, 2 Mar 2015 21:42:17 +0100 Subject: [PATCH] update to addSelect --- CRM/Event/Form/SearchEvent.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Event/Form/SearchEvent.php b/CRM/Event/Form/SearchEvent.php index 7314cf6980..ec27424354 100644 --- a/CRM/Event/Form/SearchEvent.php +++ b/CRM/Event/Form/SearchEvent.php @@ -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);"), "
"); -- 2.25.1