From 3788591b39667360bf6899a3801b709327347b6a Mon Sep 17 00:00:00 2001 From: helge Date: Sun, 15 Aug 2004 21:00:50 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/trunk@238 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGoLogic/ChangeLog | 2 ++ SOGoLogic/SOGoAppointment.m | 5 ++++- SOGoLogic/Version | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/SOGoLogic/ChangeLog b/SOGoLogic/ChangeLog index 04a21b45..8b749bd7 100644 --- a/SOGoLogic/ChangeLog +++ b/SOGoLogic/ChangeLog @@ -1,5 +1,7 @@ 2004-08-15 Helge Hess + * SOGoAppointment.m: fixed -setAttendees: method (v0.9.10) + * SOGoAppointment.m: added comment accessors (v0.9.9) * SOGoAppointmentICalRenderer.m: minor fixes to generated iCal (v0.9.8) diff --git a/SOGoLogic/SOGoAppointment.m b/SOGoLogic/SOGoAppointment.m index 2a1b93d0..f556c71e 100644 --- a/SOGoLogic/SOGoAppointment.m +++ b/SOGoLogic/SOGoAppointment.m @@ -204,7 +204,7 @@ static SaxObjectDecoder *sax = nil; } - (void)removeAllAttendees { - [self->event removeAllAttendees]; + [self setAttendees:nil]; } - (void)addToAttendees:(iCalPerson *)_person { [self->event addToAttendees:_person]; @@ -217,6 +217,9 @@ static SaxObjectDecoder *sax = nil; [self addToAttendees:[_persons objectAtIndex:i]]; } - (void)setAttendees:(NSArray *)_persons { + [self->event removeAllAttendees]; + if ([_persons count] > 0) + [self appendAttendees:_persons]; } - (NSArray *)attendees { return [self->event attendees]; diff --git a/SOGoLogic/Version b/SOGoLogic/Version index 81be7eb6..317960a7 100644 --- a/SOGoLogic/Version +++ b/SOGoLogic/Version @@ -1,3 +1,3 @@ # $Id$ -SUBMINOR_VERSION:=9 +SUBMINOR_VERSION:=10 -- 2.39.5