From fac9520f6437473ee00fd93fc63e08cd67254e05 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 28 May 2014 11:39:25 -0400 Subject: [PATCH] Fix update of participation status via CalDAV Fixes #2786 --- NEWS | 1 + SoObjects/Appointments/SOGoAppointmentObject.m | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index dd6362baa..e3765d846 100644 --- a/NEWS +++ b/NEWS @@ -40,6 +40,7 @@ Bug fixes - fixed reply and forward mail templates for Brazilian Portuguese (#2738) - fixed newline in signature when forwarding a message as attachment in HTML mode (#2787) - fixed restoration of options (priority & return receipt) when editing a draft (#193) + - fixed update of participation status via CalDAV (#2786) 2.2.3 (2014-04-03) ------------------ diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index b7da9c344..1712ec7ea 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -148,14 +148,14 @@ object = [folder lookupName: nameInContainer inContext: context acquire: NO]; - if ([object isKindOfClass: [NSException class]]) + if ([object isKindOfClass: [NSException class]] || [object isNew]) { possibleName = [folder resourceNameForEventUID: eventUID]; if (possibleName) { object = [folder lookupName: possibleName inContext: context acquire: NO]; - if ([object isKindOfClass: [NSException class]]) + if ([object isKindOfClass: [NSException class]] || [object isNew]) object = nil; } else