Commit f9d4960f authored by Kevin Deldycke's avatar Kevin Deldycke

Add backward compatibility


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5818 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 625642c2
......@@ -1349,6 +1349,9 @@ class CategoryTool( UniqueObject, Folder, Base ):
"""
from Products.ERP5Form.Selection import DomainSelection
if base_category is None:
if context.getPortalType() == "Base Category":
base_category = context.getBaseCategoryId()
else:
raise CategoryError('getCategoryMemberValueList must know the base category')
strict_membership = kw.get('strict_membership', kw.get('strict', 0))
catalog_search = self.portal_catalog(portal_type = portal_type,
......
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