From a75272b1bcf23eb5fb50acd6fc0d26484fe4bcf2 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 24 Jul 2018 13:34:49 -0600 Subject: [PATCH] * Calendar - merge placeholder {{participant_emails}} now includes group members for group invitations --- calendar/inc/class.calendar_merge.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_merge.inc.php b/calendar/inc/class.calendar_merge.inc.php index 9b45a9f706..ed5c84f51d 100644 --- a/calendar/inc/class.calendar_merge.inc.php +++ b/calendar/inc/class.calendar_merge.inc.php @@ -312,7 +312,11 @@ class calendar_merge extends Api\Storage\Merge } $emails = array(); - foreach($record->participants as $uid => $status) + $event = array( + 'participants' => $record->participants + ); + $this->bo->enum_groups($event); + foreach($event['participants'] as $uid => $status) { // Skip rejected if (in_array(substr($status, 0, 1), array('R')))