From 853060fbee74bcd51c11ed613e3a295032f6dd81 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 2 Jun 2010 01:25:19 +0000 Subject: [PATCH] See ChangeLog. Monotone-Parent: a7ffefd73526ec82019cd487dbeacfa8219526c9 Monotone-Revision: 5a7b30b7d5f425b2c0c3b96e6f1afb39c15257d7 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-06-02T01:25:19 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/Scheduler/UIxCalListingActions.m | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 20e6efa37..399fed97b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-06-02 Francis Lachapelle + + * UI/Scheduler/UIxCalListingActions.m (_userStateInEvent): fixed + array indexes that would cause the user participation state to no + longer be returned. + 2010-05-28 Francis Lachapelle * UI/MailerUI/UIxMailMainFrame.m (-saveColumnsStateAction): new diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index 55d120f11..afe732cfb 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -636,8 +636,8 @@ _userStateInEvent (NSArray *event) participants = nil; state = iCalPersonPartStatOther; - partList = [event objectAtIndex: 9]; - stateList = [event objectAtIndex: 10]; + partList = [event objectAtIndex: 10]; + stateList = [event objectAtIndex: 11]; if ([partList length] && [stateList length]) { participants = [partList componentsSeparatedByString: @"\n"]; @@ -646,7 +646,7 @@ _userStateInEvent (NSArray *event) max = [participants count]; while (state == iCalPersonPartStatOther && count < max) { - user = [SOGoUser userWithLogin: [event objectAtIndex: 11] + user = [SOGoUser userWithLogin: [event objectAtIndex: 12] roles: nil]; if ([user hasEmail: [participants objectAtIndex: count]]) state = [[states objectAtIndex: count] intValue];