diff options
author | Anna Larch <anna@nextcloud.com> | 2024-08-19 17:27:01 +0200 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2024-08-20 10:16:57 +0200 |
commit | 5bbc23a2611307d7276c1078cf0b0469d93a991e (patch) | |
tree | e39f36352d819c7d1090840530e2b57b5b8434e9 /apps/dav/lib/CalDAV/Calendar.php | |
parent | 2b7d9c1c9db85581a4b37a5a5e483b64ddd60a4b (diff) | |
download | nextcloud-server-5bbc23a2611307d7276c1078cf0b0469d93a991e.tar.gz nextcloud-server-5bbc23a2611307d7276c1078cf0b0469d93a991e.zip |
fix(caldav): allow renaming of birthday calendars
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/Calendar.php')
-rw-r--r-- | apps/dav/lib/CalDAV/Calendar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Calendar.php b/apps/dav/lib/CalDAV/Calendar.php index eaf8d227a6f..2781dbafa67 100644 --- a/apps/dav/lib/CalDAV/Calendar.php +++ b/apps/dav/lib/CalDAV/Calendar.php @@ -46,7 +46,7 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IRestorable, IShareable parent::__construct($caldavBackend, $calendarInfo); - if ($this->getName() === BirthdayService::BIRTHDAY_CALENDAR_URI) { + if ($this->getName() === BirthdayService::BIRTHDAY_CALENDAR_URI && strcasecmp($this->calendarInfo['{DAV:}displayname'], 'Contact birthdays') === 0) { $this->calendarInfo['{DAV:}displayname'] = $l10n->t('Contact birthdays'); } if ($this->getName() === CalDavBackend::PERSONAL_CALENDAR_URI && |