Commit 3e63fae3 authored by Aurel's avatar Aurel

get/setMembershipCriterionCategoryList are accessors and not method so

call them on object instead of tool


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18642 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d7efb54e
...@@ -1307,12 +1307,12 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -1307,12 +1307,12 @@ class CategoryTool( UniqueObject, Folder, Base ):
o = brain.getObject() o = brain.getObject()
if o is not None: if o is not None:
category_list = [] category_list = []
for category in self.getMembershipCriterionCategoryList(o): for category in o.getMembershipCriterionCategoryList():
new_category = self.updateRelatedCategory(category, new_category = self.updateRelatedCategory(category,
previous_category_url, previous_category_url,
new_category_url) new_category_url)
category_list.append(new_category) category_list.append(new_category)
self._setMembershipCriterionCategoryList(o, category_list) o._setMembershipCriterionCategoryList(category_list)
if getattr(aq_base(o), if getattr(aq_base(o),
'notifyAfterUpdateRelatedContent', None) is not None: 'notifyAfterUpdateRelatedContent', None) is not None:
......
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