diff --git a/NEWS b/NEWS index 403cd5234..3dbfc6995 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ ------------------ Bug fixes + - [core] properly update the last-modified attribute (#4313) - [web] prevent deletion of special folders using del key - [eas] improved alarms syncing with EAS devices (#4351) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index 70efda117..d855a48e3 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -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]]; } } diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index e6170227f..7650a4b00 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -687,6 +687,7 @@ - (NSException *) saveComponent: (iCalRepeatableEntityObject *) newObject { + [newObject setLastModified: [NSCalendarDate calendarDate]]; return [self saveCalendar: [newObject parent]]; } diff --git a/UI/Scheduler/UIxAppointmentActions.m b/UI/Scheduler/UIxAppointmentActions.m index 8f16ba980..80aa02b75 100644 --- a/UI/Scheduler/UIxAppointmentActions.m +++ b/UI/Scheduler/UIxAppointmentActions.m @@ -114,7 +114,6 @@ if ([event hasRecurrenceRules]) [event updateRecurrenceRulesUntilDate: end]; - [event setLastModified: [NSCalendarDate calendarDate]]; ex = [co saveComponent: event force: forceSave]; // This condition will be executed only if the event is moved from a calendar to another. If destionationCalendar == 0; there is no calendar change