Skip to content

Commit

Permalink
Merge pull request #45786 from nextcloud/fix/caldav/default-vjournal
Browse files Browse the repository at this point in the history
fix(caldav): allow VJOURNAL if no supported component set is specified
  • Loading branch information
st3iny authored Aug 13, 2024
2 parents 8bf2095 + 82615ce commit bb70699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/CalDAV/CalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ public function createCalendar($principalUri, $calendarUri, array $properties) {
'uri' => $calendarUri,
'synctoken' => 1,
'transparent' => 0,
'components' => 'VEVENT,VTODO',
'components' => 'VEVENT,VTODO,VJOURNAL',
'displayname' => $calendarUri
];

Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/CalDAV/AbstractCalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function createTestCalendar() {
$this->assertEquals(self::UNIT_TEST_USER, $calendars[0]['principaluri']);
/** @var SupportedCalendarComponentSet $components */
$components = $calendars[0]['{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set'];
$this->assertEquals(['VEVENT','VTODO'], $components->getValue());
$this->assertEquals(['VEVENT','VTODO','VJOURNAL'], $components->getValue());
$color = $calendars[0]['{http://apple.com/ns/ical/}calendar-color'];
$this->assertEquals('#1C4587FF', $color);
$this->assertEquals('Example', $calendars[0]['uri']);
Expand Down

0 comments on commit bb70699

Please sign in to comment.