diff --git a/ChangeLog b/ChangeLog index b422d1dca..84b1d9ca2 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-06-01 Wolfgang Sourdeau * SoObjects/SOGo/WORequest+SOGo.m (-handledByDefaultHandler): test 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];