diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-16 17:17:21 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-16 17:17:21 +0100 |
commit | d188ed938cf6c08dab38f1cb11ea7f4014b19364 (patch) | |
tree | 0eebfc7f272a710e7ab32d18b57413958f049d6e | |
parent | 596bc3bab285b3f76a9984b4e3481ff72d37e0cb (diff) | |
parent | 856ca641d17f1775081959bec92b97c93d903e1e (diff) | |
download | nextcloud-server-d188ed938cf6c08dab38f1cb11ea7f4014b19364.tar.gz nextcloud-server-d188ed938cf6c08dab38f1cb11ea7f4014b19364.zip |
Merge pull request #23082 from owncloud/contacts_calendar_name_color
add title and color to birthday calendar
-rw-r--r-- | apps/dav/lib/caldav/birthdayservice.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/caldav/birthdayservice.php b/apps/dav/lib/caldav/birthdayservice.php index 1cd52db8f48..7e1df189c4e 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; |