diff options
author | Georg Ehrke <developer@georgehrke.com> | 2019-07-22 16:58:54 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2019-07-22 16:58:54 +0200 |
commit | dce1787b9a54533c26a0e013e3ce339717256ac2 (patch) | |
tree | 4bab93a0a716f132350c5b6a6b4b0e70dbf05b8e /apps | |
parent | 3a6d8174a92734a3cc4be476163f4a98ca4d3f81 (diff) | |
download | nextcloud-server-dce1787b9a54533c26a0e013e3ce339717256ac2.tar.gz nextcloud-server-dce1787b9a54533c26a0e013e3ce339717256ac2.zip |
allow to provide supported calendar component set internally as a string
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 2d3dbd8dd12..91281dc0cb3 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'); |