Set participants as extra params for calendar videoconferences

This commit is contained in:
Hadi Nategh 2021-01-11 14:38:52 +01:00
parent 00e82fc0c4
commit 30d7e5ad57
2 changed files with 3 additions and 3 deletions

View File

@ -1099,7 +1099,7 @@ class calendar_boupdate extends calendar_bo
'avatar' => (string)$avatar,
'account_id' => $userid,
'cal_id' => $details['id']
], [], $startdate, $enddate);
], ['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'],

View File

@ -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());