From 6f538b2aa57ebe247d14064f5a8c42718ef45d33 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 15 Sep 2017 09:41:05 -0400 Subject: [PATCH] CRM-21127 - Fix return properties in api.Event.get --- api/v3/Event.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v3/Event.php b/api/v3/Event.php index 0126280a96..0a06e0fa6c 100644 --- a/api/v3/Event.php +++ b/api/v3/Event.php @@ -131,16 +131,16 @@ function civicrm_api3_event_get($params) { } $events = _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, FALSE, 'Event', $sql, TRUE); - $options = _civicrm_api3_get_options_from_params($params); + $options = _civicrm_api3_get_options_from_params($params, TRUE); if ($options['is_count']) { return civicrm_api3_create_success($events, $params, 'Event', 'get'); } foreach ($events as $id => $event) { - if (!empty($params['return.is_full'])) { + if (!empty($options['return']['is_full'])) { _civicrm_api3_event_getisfull($events, $id); } _civicrm_api3_event_get_legacy_support_42($events, $id); - if (!empty($options['return'])) { + if (!empty($options['return']['price_set_id'])) { $events[$id]['price_set_id'] = CRM_Price_BAO_PriceSet::getFor('civicrm_event', $id); } } -- 2.25.1