From 856ca641d17f1775081959bec92b97c93d903e1e Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Thu, 10 Mar 2016 13:02:42 +0100 Subject: [PATCH] add title and color to birthday calendar --- apps/dav/lib/caldav/birthdayservice.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/dav/lib/caldav/birthdayservice.php b/apps/dav/lib/caldav/birthdayservice.php index 3b0a2a10e1..09bed2430e 100644 --- a/apps/dav/lib/caldav/birthdayservice.php +++ b/apps/dav/lib/caldav/birthdayservice.php @@ -91,6 +91,11 @@ class BirthdayService { * @throws \Sabre\DAV\Exception\BadRequest */ public function ensureCalendarExists($principal, $id, $properties) { + $properties = array_merge([ + '{DAV:}displayname' => 'Contact birthdays', + '{http://apple.com/ns/ical/}calendar-color' => '#FFFFCA', + ], $properties); + $book = $this->calDavBackEnd->getCalendarByUri($principal, $id); if (!is_null($book)) { return $book;