fix(calendar): Rework confirmation box when dismissing calendar event edition with background click, only if the event is in edition. Rework of #5585. Closes #5720. Fixes #5732.

This commit is contained in:
smizrahi
2023-04-06 10:57:52 +02:00
parent dbd4e20c34
commit 46215aca87
3 changed files with 9 additions and 5 deletions
@@ -278,9 +278,13 @@
comment: data.comment,
attendees: data.attendees
};
edata.organizer.freebusy = {};
for (i = 0; i < edata.attendees.length; i++) {
edata.attendees[i].freebusy = {};
if (edata.organizer && edata.organizer.freebusy) {
edata.organizer.freebusy = {};
}
if (edata.attendees) {
for (i = 0; i < edata.attendees.length; i++) {
edata.attendees[i].freebusy = {};
}
}
json = JSON.stringify(edata);