From b753491295265aca5e4c625dfea002f09d7ee24e Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Tue, 25 Jan 2022 10:12:21 -0500 Subject: [PATCH] wrong variable --- CRM/Event/Form/ManageEvent/Registration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/ManageEvent/Registration.php b/CRM/Event/Form/ManageEvent/Registration.php index b412d89b5a14..f70e19f46559 100644 --- a/CRM/Event/Form/ManageEvent/Registration.php +++ b/CRM/Event/Form/ManageEvent/Registration.php @@ -240,7 +240,7 @@ public function buildQuickForm() { if (!$this->_isTemplate) { $this->_tz = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $this->_id, 'event_tz'); $tz = CRM_Core_SelectValues::timezone()[$this->_tz]; - $this->assign('event_tz', CRM_Core_SelectValues::timezone()[$tz] ?? '' . ts('%1 No timezone set', [1 => '']) . ''); + $this->assign('event_tz', $tz ?? '' . ts('%1 No timezone set', [1 => '']) . ''); $this->add('datepicker', 'registration_start_date', ts('Registration Start Date'), [], FALSE, ['time' => TRUE]); $this->add('datepicker', 'registration_end_date', ts('Registration End Date'), [], FALSE, ['time' => TRUE]); }