See ChangeLog

Monotone-Parent: 996b9175c23f4a62879cb172950b81df23cb973b
Monotone-Revision: a74db01453c909399692b43b08ec1c2e4a21a2fa

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-10-16T18:38:24
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-10-16 18:38:24 +00:00
parent 4a41b46036
commit a426eec716
2 changed files with 23 additions and 9 deletions
+9
View File
@@ -1,3 +1,12 @@
2009-10-16 Francis Lachapelle <flachapelle@inverse.ca>
* UI/Scheduler/UIxComponentEditor.m (-_loadRRules): the repeat
rule interval can be set unconditionally for weekly rules. When an
end date or repeat count is defined, the rule must be considered
"custom" in the web interface.
(_handleCustomRRule:): fixed a bug that would set a day mask even
when it was not defined. The day mask is optional in the RRULE definition.
2009-10-15 Cyril Robert <crobert@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolders.m
+14 -9
View File
@@ -351,6 +351,7 @@ iRANGE(2);
else if ([rule frequency] == iCalRecurrenceFrequenceWeekly)
{
repeatType = @"1";
[self setRepeat1: [NSString stringWithFormat: @"%d", [rule repeatInterval]]];
if (![rule byDayMask])
{
@@ -361,7 +362,6 @@ iRANGE(2);
}
else
{
[self setRepeat1: [NSString stringWithFormat: @"%d", [rule repeatInterval]]];
[self setRepeat2: [self _dayMaskToInteger: [rule byDayMask]]];
}
}
@@ -411,6 +411,7 @@ iRANGE(2);
// We decode the proper end date, recurrences count, etc.
if ([rule repeatCount])
{
repeat = @"CUSTOM";
[self setRange1: @"1"];
[self setRange2: [rule namedValue: @"count"]];
}
@@ -418,6 +419,7 @@ iRANGE(2);
{
NSCalendarDate *date;
repeat = @"CUSTOM";
date = [[rule untilDate] copy];
[date setTimeZone: [[context activeUser] timeZone]];
[self setRange1: @"2"];
@@ -1681,14 +1683,17 @@ RANGE(2);
[theRule setFrequency: iCalRecurrenceFrequenceWeekly];
[theRule setInterval: [self repeat1]];
v = [[self repeat2] componentsSeparatedByString: @","];
c = [v count];
mask = 0;
while (c--)
mask |= 1 << ([[v objectAtIndex: c] intValue]);
[theRule setByDayMask: mask];
if ([[self repeat2] length])
{
v = [[self repeat2] componentsSeparatedByString: @","];
c = [v count];
mask = 0;
while (c--)
mask |= 1 << ([[v objectAtIndex: c] intValue]);
[theRule setByDayMask: mask];
}
}
}
break;