From: Bradley Taylor Date: Sun, 10 Dec 2023 10:32:29 +0000 (+0000) Subject: [REF][PHP8.2] address dynamic properties in CRM_Event_Form_SearchEvent X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=62a303b666d5d765bb92e26d12e8181de59498d0;p=civicrm-core.git [REF][PHP8.2] address dynamic properties in CRM_Event_Form_SearchEvent --- diff --git a/CRM/Event/Form/SearchEvent.php b/CRM/Event/Form/SearchEvent.php index 297e971856..ef755d6871 100644 --- a/CRM/Event/Form/SearchEvent.php +++ b/CRM/Event/Form/SearchEvent.php @@ -30,12 +30,12 @@ class CRM_Event_Form_SearchEvent extends CRM_Core_Form { $defaults = []; $defaults['eventsByDates'] = 0; - $this->_showHide = new CRM_Core_ShowHideBlocks(); + $showHide = new CRM_Core_ShowHideBlocks(); if (empty($defaults['eventsByDates'])) { - $this->_showHide->addHide('id_fromToDates'); + $showHide->addHide('id_fromToDates'); } - $this->_showHide->addToTemplate(); + $showHide->addToTemplate(); return $defaults; } @@ -51,7 +51,6 @@ class CRM_Event_Form_SearchEvent extends CRM_Core_Form { $this->addSelect('event_type_id', ['multiple' => TRUE, 'context' => 'search']); - $eventsByDates = []; $searchOption = [ts('Show Current and Upcoming Events'), ts('Search All or by Date Range')]; $this->addRadio('eventsByDates', ts('Events by Dates'), $searchOption, ['onclick' => "return showHideByValue('eventsByDates','1','id_fromToDates','block','radio',true);"], ' ');