Commit bdcb9581 authored by Łukasz Nowak's avatar Łukasz Nowak

Context can be None, nothing wrong with it.

parent 3f46d029
......@@ -240,8 +240,6 @@ class BusinessProcess(Path, XMLObject):
# and avoid using the low level Predicate API. But the Domain Tool does
# support the condition above without scripting?
if context is None:
LOG('ERP5.Document.BusinessProcess', 0, 'Context is None %r' %
(business_link_list,))
return business_link_list
return [business_link for business_link in business_link_list
if business_link.test(context)]
......
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