Commit f7671392 authored by Sebastien Robin's avatar Sebastien Robin

do not assume by default a base category with id related


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5808 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b385b625
......@@ -1341,7 +1341,8 @@ class CategoryTool( UniqueObject, Folder, Base ):
This returns a catalog_search resource with can then be used by getCategoryMemberItemList
"""
from Products.ERP5Form.Selection import DomainSelection
if base_category is None: base_category = 'related'
if base_category is None:
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,
# TODO: make it work in catalog tool
......
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