Make default calendar only contain VEVENTS
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
6cca51c2aa
commit
dc04154544
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue