Skip to content

Commit c504ed6

Browse files
authored
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
2 parents 569cf31 + dce1787 commit c504ed6

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
@@ -739,7 +739,12 @@ function createCalendar($principalUri, $calendarUri, array $properties) {
739739
throw new DAV\Exception('The ' . $sccs . ' property must be of type: \Sabre\CalDAV\Property\SupportedCalendarComponentSet');
740740
}
741741
$values['components'] = implode(',',$properties[$sccs]->getValue());
742+
} else if (isset($properties['components'])) {
743+
// Allow to provide components internally without having
744+
// to create a SupportedCalendarComponentSet object
745+
$values['components'] = $properties['components'];
742746
}
747+
743748
$transp = '{' . Plugin::NS_CALDAV . '}schedule-calendar-transp';
744749
if (isset($properties[$transp])) {
745750
$values['transparent'] = (int) ($properties[$transp]->getValue() === 'transparent');

0 commit comments

Comments
 (0)