From 266586d9048a0eb42e8f121dac7004418cc3cd5b Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 1 Dec 2008 16:24:15 +0000 Subject: [PATCH] Monotone-Parent: a81f3635524596f99835829a1a4835f3a7f58c1b Monotone-Revision: 4804ccb0f75341fb484b9540603a55565d6e29e5 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-12-01T16:24:15 Monotone-Branch: ca.inverse.sogo --- SoObjects/Appointments/SOGoAppointmentObject.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index 478e90b10..bfc654489 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -447,7 +447,9 @@ event = [eventObject lookupOccurence: recurrenceTime]; if (event == nil) + // If no occurence found, create one event = [eventObject newOccurenceWithID: recurrenceTime]; + events = [NSArray arrayWithObject: event]; } @@ -888,8 +890,10 @@ // within the repeating vEvent. recurrenceTime = [NSString stringWithFormat: @"%f", [_recurrenceId timeIntervalSince1970]]; event = [self lookupOccurence: recurrenceTime]; - // If no occurence found, create one - event = [self newOccurenceWithID: recurrenceTime]; + + if (event == nil) + // If no occurence found, create one + event = [self newOccurenceWithID: recurrenceTime]; } else // No specific occurence specified; return the first vEvent of