Commit b6698116 authored by iv's avatar iv

ERP5Workflow: fix wrong 'None' value for non defined expression

parent 0d8a189f
...@@ -70,7 +70,7 @@ class GuardableMixin(object): ...@@ -70,7 +70,7 @@ class GuardableMixin(object):
break break
else: else:
return False return False
if self.guard_expression is not None: if self.guard_expression.text:
expression_context = createExprContext(StateChangeInfo(current_object, expression_context = createExprContext(StateChangeInfo(current_object,
workflow, workflow,
kwargs=kw)) kwargs=kw))
......
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