From 4d2c77195e72def1e39caab6c402c9b297d844ff Mon Sep 17 00:00:00 2001 From: smizrahi Date: Mon, 14 Aug 2023 17:08:27 +0200 Subject: [PATCH] fix(calendar): When an event has no date (weird case), it is not possible to remove the event (NSException) --- UI/Scheduler/UIxAppointmentEditor.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index 1731f3810..5ef8e8e79 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -850,7 +850,7 @@ attachUrls = [self attachUrls]; if ([attachUrls count]) [data setObject: attachUrls forKey: @"attachUrls"]; - if (!isAllDay) + if (!isAllDay && eventStartDate && eventStartDate) { [data setObject: [dateFormatter formattedTime: eventStartDate] forKey: @"localizedStartTime"]; [data setObject: [dateFormatter formattedTime: eventEndDate] forKey: @"localizedEndTime"];