Skip to content

Commit 092a233

Browse files
authored
Merge pull request #16537 from nextcloud/backport/16503/stable15
[stable15] allow to provide supported calendar component set internally as a string
2 parents 469da4f + 07cbabb commit 092a233

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,12 @@ function createCalendar($principalUri, $calendarUri, array $properties) {
735735
throw new DAV\Exception('The ' . $sccs . ' property must be of type: \Sabre\CalDAV\Property\SupportedCalendarComponentSet');
736736
}
737737
$values['components'] = implode(',',$properties[$sccs]->getValue());
738+
} else if (isset($properties['components'])) {
739+
// Allow to provide components internally without having
740+
// to create a SupportedCalendarComponentSet object
741+
$values['components'] = $properties['components'];
738742
}
743+
739744
$transp = '{' . Plugin::NS_CALDAV . '}schedule-calendar-transp';
740745
if (isset($properties[$transp])) {
741746
$values['transparent'] = (int) ($properties[$transp]->getValue() === 'transparent');

0 commit comments

Comments
 (0)