From d9550294ea382cfc08eabf147318068329f39e8a Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 22 May 2019 10:36:43 +1200 Subject: [PATCH] Fix deprecation notice on manage events page --- CRM/Event/BAO/Event.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 22034dd9f5..2729d09693 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -330,6 +330,8 @@ WHERE ( civicrm_event.is_template IS NULL OR civicrm_event.is_template = 0 )"; * * @return array * Array of event summary values + * + * @throws \CiviCRM_API3_Exception */ public static function getEventSummary() { $eventSummary = $eventIds = []; @@ -338,7 +340,7 @@ WHERE ( civicrm_event.is_template IS NULL OR civicrm_event.is_template = 0 )"; // get permission and include them here // does not scale, but rearranging code for now // FIXME in a future release - $permissions = CRM_Event_BAO_Event::checkPermission(); + $permissions = self::getAllPermissions(); $validEventIDs = ''; if (empty($permissions[CRM_Core_Permission::VIEW])) { $eventSummary['total_events'] = 0; -- 2.25.1