From 411befaf63ef36cd2f26e9b4c361114b796aefe1 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Wed, 10 May 2017 11:04:37 -0400 Subject: [PATCH] CRM-20549 no limit on event permission check api call --- CRM/Event/BAO/Event.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 63a864e9a5..a261c077eb 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -2053,6 +2053,9 @@ WHERE ce.loc_block_id = $locBlockId"; $result = civicrm_api3('Event', 'get', array( 'check_permissions' => 1, 'return' => 'title', + 'options' => array( + 'limit' => 0, + ), )); $allEvents = CRM_Utils_Array::collect('title', $result['values']); @@ -2060,6 +2063,9 @@ WHERE ce.loc_block_id = $locBlockId"; 'check_permissions' => 1, 'return' => 'title', 'created_id' => 'user_contact_id', + 'options' => array( + 'limit' => 0, + ), )); $createdEvents = CRM_Utils_Array::collect('title', $result['values']); -- 2.25.1