return 'contact_id' in TwingleEvent.get

This commit is contained in:
Marc Michalsky forumZFD 2021-02-22 13:19:01 +01:00
parent e25235cbc8
commit 5685c302d9
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -134,6 +134,9 @@ function civicrm_api3_twingle_event_Get(array $params): array {
$returnValues[$event['id']][$custom_field_mapping_reverse[$key]] $returnValues[$event['id']][$custom_field_mapping_reverse[$key]]
= $value; = $value;
} }
elseif ($key == $custom_field_mapping['twingle_event_contact'].'_id') {
$returnValues[$event['id']]['contact_id'] = $value;
}
else { else {
$returnValues[$event['id']][$key] = $value; $returnValues[$event['id']][$key] = $value;
} }