From 5685c302d94f5e0e3bb7f21f7ef4d216c2d0b1f9 Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Mon, 22 Feb 2021 13:19:01 +0100 Subject: [PATCH] return 'contact_id' in TwingleEvent.get --- api/v3/TwingleEvent/Get.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/v3/TwingleEvent/Get.php b/api/v3/TwingleEvent/Get.php index 4293cf1..45b03d7 100644 --- a/api/v3/TwingleEvent/Get.php +++ b/api/v3/TwingleEvent/Get.php @@ -134,6 +134,9 @@ function civicrm_api3_twingle_event_Get(array $params): array { $returnValues[$event['id']][$custom_field_mapping_reverse[$key]] = $value; } + elseif ($key == $custom_field_mapping['twingle_event_contact'].'_id') { + $returnValues[$event['id']]['contact_id'] = $value; + } else { $returnValues[$event['id']][$key] = $value; }