See ChangeLog.

Monotone-Parent: 553f303f1f7a6910069af8e49e3926e86bece4b7
Monotone-Revision: bca01c4b6bca68557777af637fd2dfc8b775df37

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-03-29T23:34:37
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Francis Lachapelle 2011-03-29 23:34:37 +00:00
parent 6b3d99424a
commit a2ca7e48d7
3 changed files with 18 additions and 5 deletions

View File

@ -1,4 +1,4 @@
2011-03-29 francis <flachapelle@inverse.ca>
2011-03-29 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/Appointments/iCalEvent+SOGo.m
(-updateRecurrenceRulesUntilDate:): shifts the "until dates" of
@ -16,6 +16,13 @@
(-_flattenCycleRecord:forRange:intoArray:): when the event has a
timezone, the "until dates" of recurrence rules must be adjusted.
* UI/Scheduler/UIxAppointmentActions.m (-adjustAction): when
modifying an event, also modify the "until dates" of recurrence rules.
* UI/Scheduler/UIxAppointmentEditor.m (-_adjustRecurrentRules):
the "until date" of finite recurrence rules must be based on the
event end date, not the start date.
2011-03-28 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Tools/SOGoToolRemoveDoubles.m

View File

@ -1,6 +1,6 @@
/* UIxAppointmentActions.m - this file is part of SOGo
*
* Copyright (C) 2010 Inverse inc.
* Copyright (C) 2011 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
@ -35,6 +35,7 @@
#import <SOGo/NSCalendarDate+SOGo.h>
#import <SOGo/SOGoUser.h>
#import <SOGo/SOGoUserDefaults.h>
#import <Appointments/iCalEvent+SOGo.h>
#import <Appointments/SOGoAppointmentObject.h>
#import <Common/WODirectAction+SOGo.h>
@ -98,6 +99,10 @@
[event setStartDate: newStart];
[event setEndDate: newEnd];
}
if ([event hasRecurrenceRules])
[event updateRecurrenceRulesUntilDate: end];
[co saveComponent: event];
response = [self responseWith204];

View File

@ -1,8 +1,9 @@
/* UIxAppointmentEditor.m - this file is part of SOGo
*
* Copyright (C) 2007-2010 Inverse inc.
* Copyright (C) 2007-2011 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Francis Lachapelle <flachapelle@inverse.ca>
*
* 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
@ -356,10 +357,10 @@
untilDate = [rule untilDate];
if (untilDate)
{
// The until date must match the time of the start date
// The until date must match the time of the end date
NSCalendarDate *date;
date = [[event startDate] copy];
date = [[event endDate] copy];
[date setTimeZone: timeZone];
untilDate = [untilDate dateByAddingYears:0
months:0