forked from extern/egroupware
Fix calendar title not being set for scheduled calls and the contacts as participants not being counted
This commit is contained in:
parent
765b95cd49
commit
bea4b0dcf9
@ -1123,11 +1123,13 @@ class calendar_boupdate extends calendar_bo
|
||||
true);
|
||||
|
||||
$details['videoconference'] = EGroupware\Status\Videoconference\Call::genMeetingUrl($event['##videoconference'], [
|
||||
'title' => $event['title'],
|
||||
'name' => $fullname,
|
||||
'email' => is_numeric($userid) ? Api\Accounts::id2name($userid, 'account_email') : $userid,
|
||||
'avatar' => (string)$avatar,
|
||||
'account_id' => $userid,
|
||||
'cal_id' => $details['id']
|
||||
'cal_id' => $details['id'],
|
||||
'notify_only' => true
|
||||
], ['participants' =>array_filter($event['participants'], function($key){return is_numeric($key);}, ARRAY_FILTER_USE_KEY)], $startdate, $enddate);
|
||||
$event_arr['videoconference'] = [
|
||||
'field' => lang('Video Conference'),
|
||||
|
@ -3688,7 +3688,7 @@ var CalendarApp = /** @class */ (function (_super) {
|
||||
// Send just the timestamp (as a string) with no timezone
|
||||
(typeof _data.start != "string" ? _data.start.toJSON() : _data.start).slice(0, -1),
|
||||
(typeof _data.end != "string" ? _data.end.toJSON() : _data.end).slice(0, -1), {
|
||||
participants: Object.keys(_data.participants).filter(function (v) { return v.match(/^[0-9]|[e]/); })
|
||||
participants: Object.keys(_data.participants).filter(function (v) { return v.match(/^[0-9|e|c]/); })
|
||||
}], function (_value) {
|
||||
if (_value) {
|
||||
if (_value.err)
|
||||
|
@ -4577,7 +4577,7 @@ class CalendarApp extends EgwApp
|
||||
( typeof _data.start != "string" ? _data.start.toJSON() : _data.start).slice(0,-1),
|
||||
( typeof _data.end != "string" ? _data.end.toJSON() : _data.end).slice(0,-1),
|
||||
{
|
||||
participants:Object.keys(_data.participants).filter(v => {return v.match(/^[0-9]|[e]/)})
|
||||
participants:Object.keys(_data.participants).filter(v => {return v.match(/^[0-9|e|c]/)})
|
||||
}], function(_value){
|
||||
if (_value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user