From 608c785f702a68329cf779a44ce712439623487b Mon Sep 17 00:00:00 2001 From: Khaled FERJANI Date: Fri, 15 Oct 2021 08:56:37 +0100 Subject: [PATCH] linagora/customers#608 fixed duplicating event failing due to malformed event alarms --- src/esn.calendar.libs/app/services/event-duplicate.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/esn.calendar.libs/app/services/event-duplicate.service.js b/src/esn.calendar.libs/app/services/event-duplicate.service.js index f44a513d..8cfc826e 100644 --- a/src/esn.calendar.libs/app/services/event-duplicate.service.js +++ b/src/esn.calendar.libs/app/services/event-duplicate.service.js @@ -46,7 +46,7 @@ function calEventDuplicateService( // Set the alarm if there was any // alarm can't be set with CalendarShell.fromIncompleteShell because the event needs to be created or cloned first. - if (event.alarm) { + if (event.alarm && event.alarm.trigger && event.alarm.attendee) { duplicate.alarm = event.alarm; }