1.1 --- a/imiptools/stores/common.py Wed Oct 18 13:24:59 2017 +0200
1.2 +++ b/imiptools/stores/common.py Wed Oct 18 17:38:10 2017 +0200
1.3 @@ -236,9 +236,16 @@
1.4 uid = obj.get_uid()
1.5
1.6 if not obj.modifying:
1.7 - obj.set_modifying(self.get_active_recurrences(user, uid))
1.8 + objects = []
1.9 + for recurrenceid in self.get_active_recurrences(user, uid):
1.10 + objects.append(self.get_event(user, uid, recurrenceid))
1.11 + obj.set_modifying(objects)
1.12 +
1.13 if not obj.cancelling:
1.14 - obj.set_cancelling(self.get_cancelled_recurrences(user, uid))
1.15 + objects = []
1.16 + for recurrenceid in self.get_cancelled_recurrences(user, uid):
1.17 + objects.append(self.get_event(user, uid, recurrenceid, "cancellations"))
1.18 + obj.set_cancelling(objects)
1.19
1.20 # Free/busy period providers, upon extension of the free/busy records.
1.21