Commit 70f928d4 authored by Nicolas Delaby's avatar Nicolas Delaby

Reset subscribers before delete them

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9dbeeee
......@@ -230,9 +230,13 @@ class Publication(Subscription):
"""
Reset all subscribers
"""
id_list = [o.id for o in self.getSubscriberList()]
id_list = []
for subscriber in self.getSubscriberList():
subscriber.resetAllSignatures()
id_list.append(subscriber.getId())
self.activate(activity='SQLQueue',
tag=self.getId(),
after_tag=id_list,
priority=self.PRIORITY).manage_delObjects(id_list)
def getConflictList(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment