mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 06:52:40 +00:00
Remove invalid occurrences when saving master
This commit is contained in:
1 parent
452083e767
commit
0c5b5446dd
4 files changed
+46
-13
No files matched your search
@@ -317,16 +317,23 @@
|
||||
}
|
||||
count++;
|
||||
}
|
||||
|
||||
|
||||
// Add an date exception.
|
||||
event = (iCalRepeatableEntityObject*)[calendar firstChildWithTag: [object componentTag]];
|
||||
[event addToExceptionDates: recurrenceId];
|
||||
|
||||
[event increaseSequence];
|
||||
[event setLastModified: [NSCalendarDate calendarDate]];
|
||||
if (event)
|
||||
{
|
||||
[event addToExceptionDates: recurrenceId];
|
||||
[event increaseSequence];
|
||||
[event setLastModified: [NSCalendarDate calendarDate]];
|
||||
|
||||
// We save the updated iCalendar in the database.
|
||||
[object saveCalendar: calendar];
|
||||
// We save the updated iCalendar in the database.
|
||||
[object saveCalendar: calendar];
|
||||
}
|
||||
else
|
||||
{
|
||||
// No more child; kill the parent
|
||||
[object delete];
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user