Skip to content

Commit

Permalink
Merge pull request #16503 from nextcloud/bugfix/5504/create_new_birth…
Browse files Browse the repository at this point in the history
…day_calendars_with_VEVENT_only

allow to provide supported calendar component set internally as a string
  • Loading branch information
rullzer authored Jul 25, 2019
2 parents 569cf31 + dce1787 commit c504ed6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/dav/lib/CalDAV/CalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,12 @@ function createCalendar($principalUri, $calendarUri, array $properties) {
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');
Expand Down

0 comments on commit c504ed6

Please sign in to comment.