From 10bba9fd88192bfe6bcbd6308f92ec3b97fe8c85 Mon Sep 17 00:00:00 2001 From: Moritz Strohm <strohm@data-quest.de> Date: Fri, 22 Mar 2024 10:09:12 +0100 Subject: [PATCH] removed rule to prevent deletion of calendar entries that are linked to more than one calendar --- lib/models/calendar/CalendarDate.class.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/models/calendar/CalendarDate.class.php b/lib/models/calendar/CalendarDate.class.php index bb15ed823f8..68ca2dfcc07 100644 --- a/lib/models/calendar/CalendarDate.class.php +++ b/lib/models/calendar/CalendarDate.class.php @@ -90,10 +90,6 @@ class CalendarDate extends SimpleORMap implements PrivacyObject public function delete() { - // do not delete until one calendar is left - if (count($this->calendars) > 1) { - return false; - } $calendars = $this->calendars; $ret = parent::delete(); // only one calendar is left -- GitLab