From 30d7e5ad57ea7ba169db7ca3791b06e3382cd3d6 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 11 Jan 2021 14:38:52 +0100 Subject: [PATCH] Set participants as extra params for calendar videoconferences --- calendar/inc/class.calendar_boupdate.inc.php | 4 ++-- calendar/inc/class.calendar_groupdav.inc.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index 90b5ca6d86..1231eb1958 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -1098,8 +1098,8 @@ class calendar_boupdate extends calendar_bo 'email' => is_numeric($userid) ? Api\Accounts::id2name($userid, 'account_email') : $userid, 'avatar' => (string)$avatar, 'account_id' => $userid, - 'cal_id' => $details['id'] - ], [], $startdate, $enddate); + 'cal_id' => $details['id'] + ], ['participants' =>array_filter($event['participants'], function($key){return is_numeric($key);}, ARRAY_FILTER_USE_KEY)], $startdate, $enddate); $event_arr['videoconference'] = [ 'field' => lang('Video Conference'), 'data' => $details['videoconference'], diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php index 804c6383e2..f415e68bcc 100644 --- a/calendar/inc/class.calendar_groupdav.inc.php +++ b/calendar/inc/class.calendar_groupdav.inc.php @@ -692,7 +692,7 @@ class calendar_groupdav extends Api\CalDAV\Handler 'avatar' => (string)$avatar, 'account_id' => $user, 'cal_id' => $event['id'] - ], [], $event['start_date'], $event['end_date']); + ], ['participants' =>array_filter($event['participants'], function($key){return is_numeric($key);}, ARRAY_FILTER_USE_KEY)], $event['start_date'], $event['end_date']); }catch (Exception $e) { //error_log(__METHOD__.'()'.$e->getMessage());