diff --git a/ChangeLog b/ChangeLog index e4862968a..e78f0b166 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ code will always succeed and the new code reuses all the business logic used for the Web interface of SOGo. + * SOPE/NGCards/iCalRecurrenceRule.m + Modified setInterval: so that when the value is + equal to 1, we do NOT set it. 2010-08-03 Ludovic Marcotte diff --git a/SOPE/NGCards/iCalRecurrenceRule.m b/SOPE/NGCards/iCalRecurrenceRule.m index 1abc726bc..763a896dd 100644 --- a/SOPE/NGCards/iCalRecurrenceRule.m +++ b/SOPE/NGCards/iCalRecurrenceRule.m @@ -383,7 +383,10 @@ NSString *iCalWeekDayString[] = { @"SU", @"MO", @"TU", @"WE", @"TH", @"FR", - (void) setInterval: (NSString *) _interval { - [self setNamedValue: @"interval" to: _interval]; + if (_interval && [_interval intValue] == 1) + [self setNamedValue: @"interval" to: nil]; + else + [self setNamedValue: @"interval" to: _interval]; } - (void) setCount: (NSString *) _count