Browse Source

allow to provide supported calendar component set internally as a string

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
tags/v17.0.0beta1
Georg Ehrke 4 years ago
parent
commit
dce1787b9a
No account linked to committer's email address
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      apps/dav/lib/CalDAV/CalDavBackend.php

+ 5
- 0
apps/dav/lib/CalDAV/CalDavBackend.php View File

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

Loading…
Cancel
Save