diff --git a/product/ERP5/Tool/RuleTool.py b/product/ERP5/Tool/RuleTool.py index 145e934e7294f463d49086a7d5907a78a3c3a78e..fdae0c4c7de193e74626edd46f36fb639a8f3842 100644 --- a/product/ERP5/Tool/RuleTool.py +++ b/product/ERP5/Tool/RuleTool.py @@ -122,7 +122,7 @@ class RuleTool (UniqueObject, Folder): security.declareProtected(Permissions.AccessContentsInformation, 'searchRuleList') - def searchRuleList(self, movement, tested_base_category_list=[], **kw): + def searchRuleList(self, movement, tested_base_category_list=None, **kw): """ this method searches for rules, as predicates against movement @@ -132,6 +132,9 @@ class RuleTool (UniqueObject, Folder): """ domain_tool = getToolByName(self, "portal_domains") + if tested_base_category_list is None: + tested_base_category_list = [] + rule_list = domain_tool.searchPredicateList(context=movement, tested_base_category_list=tested_base_category_list, portal_type=self.getPortalRuleTypeList(),