Merge pull request #16503 from nextcloud/bugfix/5504/create_new_birthday_calendars_with_VEVENT_only
allow to provide supported calendar component set internally as a string
This commit is contained in:
commit
c504ed66b7
|
@ -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…
Reference in New Issue