* Calendar/CalDAV: videoconference was lost, if meeting was accepted of updated via CalDAV

This commit is contained in:
Ralf Becker 2020-06-05 11:17:37 +02:00
parent ff0cdf8143
commit 86bb99e45e

View File

@ -1308,12 +1308,13 @@ class calendar_ical extends calendar_boupdate
} }
} }
} }
// unset old X-* attributes stored in custom-fields // unset old X-* attributes stored in custom-fields with exception of our videoconference and notify-externals
foreach ($event_info['stored_event'] as $key => $value) foreach ($event_info['stored_event'] as $key => $value)
{ {
if ($key[0] == '#' && $key[1] == '#' && !isset($event[$key])) if ($key[0] == '#' && $key[1] == '#' && !isset($event[$key]))
{ {
$event[$key] = ''; $event[$key] = in_array($key, ['##videoconference', '##notify_externals']) ?
$value : '';
} }
} }
if ($merge) if ($merge)