From 41124336f7c89a32c1560d6545e44fd414374790 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 26 Jan 2011 15:55:59 +0000 Subject: [PATCH] See Changelog. Monotone-Parent: 8658284026ef9be953eada83e1590f5fded9a943 Monotone-Revision: 93f02a3eae7a8d5fbf902ba43a47ae1ce2b76baf Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-01-26T15:55:59 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/Scheduler/UIxComponentEditor.m | 17 +++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 18153f1f5..ee5eaabb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-01-26 Francis Lachapelle + + * UI/Scheduler/UIxComponentEditor.m (-setComponent:): retrieve the + organizer from the master component when not present in the + current component. + 2011-01-24 Francis Lachapelle * SoObjects/SOGo/LDAPSource.m (_qualifierForFilter:): added diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index 891796575..3dac37db6 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -1,8 +1,9 @@ /* UIxComponentEditor.m - this file is part of SOGo * - * Copyright (C) 2006-2010 Inverse inc. + * Copyright (C) 2006-2011 Inverse inc. * * Author: Wolfgang Sourdeau + * Francis Lachapelle * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -589,10 +590,10 @@ iRANGE(2); doing this... for example, when the clientObject is set */ - (void) setComponent: (iCalRepeatableEntityObject *) newComponent { -// iCalRecurrenceRule *rrule; SOGoObject *co; SOGoUserManager *um; NSString *owner, *ownerEmail; + iCalRepeatableEntityObject *masterComponent; if (!component) { @@ -611,8 +612,16 @@ iRANGE(2); ASSIGN (status, [component status]); ASSIGN (categories, [[component categories] vCardSubvaluesWithSeparator: ',']); - ASSIGN (organizer, [component organizer]); - + if ([[[component organizer] rfc822Email] length]) + { + ASSIGN (organizer, [component organizer]); + } + else + { + masterComponent = [[[component parent] allObjects] objectAtIndex: 0]; + ASSIGN (organizer, [masterComponent organizer]); + } + [self _loadCategories]; if (!jsonAttendees) [self _loadAttendees];