From 62a303b666d5d765bb92e26d12e8181de59498d0 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sun, 10 Dec 2023 10:32:29 +0000 Subject: [PATCH] [REF][PHP8.2] address dynamic properties in CRM_Event_Form_SearchEvent --- CRM/Event/Form/SearchEvent.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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);"], ' '); -- 2.25.1