From dce1787b9a54533c26a0e013e3ce339717256ac2 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 22 Jul 2019 16:58:54 +0200 Subject: [PATCH] allow to provide supported calendar component set internally as a string Signed-off-by: Georg Ehrke --- apps/dav/lib/CalDAV/CalDavBackend.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 2d3dbd8dd1..91281dc0cb 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -739,7 +739,12 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription throw new DAV\Exception('The ' . $sccs . ' property must be of type: \Sabre\CalDAV\Property\SupportedCalendarComponentSet'); } $values['components'] = implode(',',$properties[$sccs]->getValue()); + } else if (isset($properties['components'])) { + // Allow to provide components internally without having + // to create a SupportedCalendarComponentSet object + $values['components'] = $properties['components']; } + $transp = '{' . Plugin::NS_CALDAV . '}schedule-calendar-transp'; if (isset($properties[$transp])) { $values['transparent'] = (int) ($properties[$transp]->getValue() === 'transparent');