From 2521594474158622ac299ed1d50e30a0a4f1c6cc Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 9 Jun 2009 12:49:44 +0000 Subject: [PATCH] Monotone-Parent: 9d295aedd68c44aba6937bedaf18a07f77494999 Monotone-Revision: ebd21a6e3c127f3eb4a8c885b2740304a24af72c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-09T12:49:44 Monotone-Branch: ca.inverse.sogo --- SoObjects/Appointments/SOGoAppointmentFolder.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index a3a146445..8b8d1d885 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -1428,13 +1428,16 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir return properties; } +/* FIXME: is this really what we want? Why limit the cycleenddate? */ - (NSDictionary *) _makeCyclicFilterFrom: (NSDictionary *) filter { NSMutableDictionary *rc; + NSNumber *start; rc = [NSMutableDictionary dictionaryWithDictionary: filter]; - if ([rc objectForKey: @"start"]) - [rc setObject: [rc objectForKey: @"start"] forKey: @"cycleenddate"]; + start = [rc objectForKey: @"start"]; + if (start) + [rc setObject: start forKey: @"cycleenddate"]; [rc removeObjectForKey: @"start"]; [rc removeObjectForKey: @"end"]; [rc setObject: sharedYes forKey: @"iscycle"];