From ba5f6410edbd7c64566445f538bae894d50d2b17 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 1 Jul 2015 14:11:53 -0400 Subject: [PATCH] Return recurrence rule only if frequency is known --- SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m b/SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m index dd08d262c..00a0ce07c 100644 --- a/SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m +++ b/SoObjects/Appointments/iCalRepeatableEntityObject+SOGo.m @@ -209,9 +209,11 @@ } if ((NSUInteger) frequency != NSNotFound) - [rule setFrequency: frequency]; + { + [rule setFrequency: frequency]; + [self setRecurrenceRules: [NSArray arrayWithObject: rule]]; + } - [self setRecurrenceRules: [NSArray arrayWithObject: rule]]; [rule release]; } }