From e996186a9a3b681468c7b0256bb8db69271bbc88 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Sat, 3 Nov 2007 21:16:59 +0000 Subject: [PATCH] see changelog Monotone-Parent: 9309391aaa757ddac8064ffbf2a6d70142a30d02 Monotone-Revision: 50148283f948919bbd581d3c19d4d6fac01e16df Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2007-11-03T21:16:59 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ UI/Scheduler/UIxAppointmentEditor.m | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index b865d14f9..e43917953 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-03 Ludovic Marcotte + + * UI/Scheduler/UIxAppointmentEditor.m + Fixed monthly recurrences support. + 2007-11-01 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentObject.m diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index de4e0c472..17860371b 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -426,6 +426,12 @@ |iCalWeekDayFriday)]; [rule setFrequency: iCalRecurrenceFrequenceDaily]; } + else if ([repeat caseInsensitiveCompare: @"MONTHLY"] == NSOrderedSame) + { + [rule setNamedValue: @"bymonthday" + to: [NSString stringWithFormat: @"%d", [aptStartDate dayOfMonth]]]; + [rule setFrequency: iCalRecurrenceFrequenceMonthly]; + } else [rule setFrequency: (iCalRecurrenceFrequency) [rule valueForFrequency: repeat]];