mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-17 01:08:16 +00:00
(fix) properly update the last-modified attribute (fixes #4313)
This commit is contained in:
1 parent
a0bf8b6f4d
commit
a601ed47d8
4 files changed
+7
-3
No files matched your search
@@ -323,7 +323,8 @@
|
||||
[event addToExceptionDates: recurrenceId];
|
||||
|
||||
[event increaseSequence];
|
||||
|
||||
[event setLastModified: [NSCalendarDate calendarDate]];
|
||||
|
||||
// We save the updated iCalendar in the database.
|
||||
[object saveCalendar: calendar];
|
||||
}
|
||||
@@ -1242,6 +1243,7 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent
|
||||
}
|
||||
|
||||
// We save the updated iCalendar in the database.
|
||||
[event setLastModified: [NSCalendarDate calendarDate]];
|
||||
error = [eventObject saveCalendar: [event parent]];
|
||||
}
|
||||
|
||||
@@ -1638,7 +1640,8 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent
|
||||
{
|
||||
[event addToAlarms: alarm];
|
||||
}
|
||||
|
||||
|
||||
[event setLastModified: [NSCalendarDate calendarDate]];
|
||||
ex = [self saveCalendar: [event parent]];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -687,6 +687,7 @@
|
||||
|
||||
- (NSException *) saveComponent: (iCalRepeatableEntityObject *) newObject
|
||||
{
|
||||
[newObject setLastModified: [NSCalendarDate calendarDate]];
|
||||
return [self saveCalendar: [newObject parent]];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user