From 921ecc3abe439548c2a97b60007541bd48556a1c Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 7 Jan 2009 16:23:18 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: 9048b460e440fe34703b374e309791774c315f1d Monotone-Revision: bd80ab1b5ef73a7bb7780c2f592816cd299c35b8 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-01-07T16:23:18 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ UI/Scheduler/UIxAppointmentEditor.m | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 95827b606..8f2fb9d2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-07 Francis Lachapelle + + * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor + -saveAction]): for recurrent events with an end date, the method + _adjustRecurrentRules must be called unconditionally. This fixes + the missing occurence on the last day. + 2008-01-06 Ludovic Marcotte * SoObjects/Appointments/SOGoCalendarComponent.m diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index 474f47611..9d5e37ff4 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -334,6 +334,9 @@ previousCalendar = [co container]; sm = [SoSecurityManager sharedSecurityManager]; + if ([event hasRecurrenceRules]) + [self _adjustRecurrentRules]; + if ([co isNew]) { if (componentCalendar && componentCalendar != previousCalendar) @@ -355,9 +358,6 @@ } else { - if ([event hasRecurrenceRules]) - [self _adjustRecurrentRules]; - // The event was modified -- save it. [co saveComponent: event];