Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8266c07 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

patch fix

parent 6aeb47f1
Loading
Loading
Loading
Loading
Loading
+16 −19
Original line number Diff line number Diff line
--- ReminderService.php 2023-02-27 12:55:01.245349485 +0530
+++ ReminderService-new.php     2023-02-27 15:58:02.515774882 +0530
@@ -143,7 +143,15 @@
--- ./apps/dav/lib/CalDAV/Reminder/ReminderService.php	2023-03-06 21:26:20.835422901 +0530
+++ ./apps/dav/lib/CalDAV/Reminder/ReminderService-new.php	2023-03-06 21:28:49.325422185 +0530
@@ -143,7 +143,13 @@
 				continue;
 			}

-			$vevent = $this->getVEventByRecurrenceId($vcalendar, $reminder['recurrence_id'], $reminder['is_recurrence_exception']);
+
+			try {
+				$vevent = $this->getVEventByRecurrenceId($vcalendar, $reminder['recurrence_id'], $reminder['is_recurrence_exception']);
+			} catch (MaxInstancesExceededException $e) {
@@ -13,8 +12,6 @@
+				$this->backend->removeReminder($reminder['id']);
+				continue;
+			}
+
 			if (!$vevent) {
 				$this->backend->removeReminder($reminder['id']);
 				continue;