Add handling of BYSETPOS for BYDAY in repeat rule

pull/228/head
Francis Lachapelle 2016-11-29 17:47:14 -05:00
parent 6f732ba535
commit d293fe79ed
2 changed files with 11 additions and 1 deletions

3
NEWS
View File

@ -1,6 +1,9 @@
3.2.4 (2016-12-DD)
------------------
Enhancements
- [core] added handling of BYSETPOS for BYDAY in recurrence rules
Bug fixes
- [web] fixed JavaScript exception when SOGo is launched from an external link (#3900)
- [web] restored fetching of freebusy information of MS Exchange contacts

View File

@ -466,9 +466,16 @@ NSString *iCalWeekDayString[] = { @"SU", @"MO", @"TU", @"WE", @"TH", @"FR",
- (iCalByDayMask *) byDayMask
{
NSArray *setPos;
NSString *day;
if (dayMask == nil && [[self byDay] length])
{
dayMask = [iCalByDayMask byDayMaskWithRuleString: [self byDay]];
day = [self byDay];
setPos = [self bySetPos];
if ([setPos count])
day = [NSString stringWithFormat: @"%@%@", [setPos lastObject], day];
dayMask = [iCalByDayMask byDayMaskWithRuleString: day];
[dayMask retain];
}