Merge pull request #23128 from owncloud/contacts_calendar_name_color-stable9

add title and color to birthday calendar
This commit is contained in:
Thomas Müller 2016-03-17 13:08:03 +01:00
commit ec4c5a3e75
1 changed files with 5 additions and 0 deletions

View File

@ -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;