From b03d10571e4fff90e28b49240328c60615525027 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 6 Nov 2021 09:43:19 +1300 Subject: [PATCH] Enotice fixes --- CRM/Event/Page/ManageEvent.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Page/ManageEvent.php b/CRM/Event/Page/ManageEvent.php index 6c45eb732d..90e5c1a8b1 100644 --- a/CRM/Event/Page/ManageEvent.php +++ b/CRM/Event/Page/ManageEvent.php @@ -348,7 +348,14 @@ ORDER BY start_date desc $eventType = CRM_Core_OptionGroup::values('event_type'); while ($dao->fetch()) { if (in_array($dao->id, $permittedEventsByAction[CRM_Core_Permission::VIEW])) { - $manageEvent[$dao->id] = []; + $manageEvent[$dao->id] = [ + // Set defaults to prevent smarty e-notices, will be overwritten if populated. + 'city' => '', + 'state_province' => '', + 'end_date' => '', + 'loc_block_id' => '', + 'participant_listing_id' => '', + ]; $repeat = CRM_Core_BAO_RecurringEntity::getPositionAndCount($dao->id, 'civicrm_event'); $manageEvent[$dao->id]['repeat'] = ''; if ($repeat) { -- 2.25.1