diff --git a/apps/dav/lib/HookManager.php b/apps/dav/lib/HookManager.php index d3b0807791..cbecb78a38 100644 --- a/apps/dav/lib/HookManager.php +++ b/apps/dav/lib/HookManager.php @@ -157,7 +157,8 @@ class HookManager { try { $this->calDav->createCalendar($principal, CalDavBackend::PERSONAL_CALENDAR_URI, [ '{DAV:}displayname' => CalDavBackend::PERSONAL_CALENDAR_NAME, - '{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary() + '{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary(), + 'components' => 'VEVENT' ]); } catch (\Exception $ex) { \OC::$server->getLogger()->logException($ex); diff --git a/apps/dav/tests/unit/DAV/HookManagerTest.php b/apps/dav/tests/unit/DAV/HookManagerTest.php index 80f2bcaadd..bafb172bb1 100644 --- a/apps/dav/tests/unit/DAV/HookManagerTest.php +++ b/apps/dav/tests/unit/DAV/HookManagerTest.php @@ -91,7 +91,8 @@ class HookManagerTest extends TestCase { 'principals/users/newUser', 'personal', [ '{DAV:}displayname' => 'Personal', - '{http://apple.com/ns/ical/}calendar-color' => '#745bca' + '{http://apple.com/ns/ical/}calendar-color' => '#745bca', + 'components' => 'VEVENT' ]); /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */ @@ -177,7 +178,8 @@ class HookManagerTest extends TestCase { 'principals/users/newUser', 'personal', [ '{DAV:}displayname' => 'Personal', - '{http://apple.com/ns/ical/}calendar-color' => '#745bca' + '{http://apple.com/ns/ical/}calendar-color' => '#745bca', + 'components' => 'VEVENT' ]); /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */