Commit f98b6ed8 authored by iv's avatar iv

ERP5Workflow: fix performance issue

parent 45b508a0
......@@ -701,8 +701,9 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
# Preserve former value
value = former_status[variable_reference]
else:
if vdef.getVariableExpression() is not None:
expr = vdef.getVariableExpression()
variable_expression = vdef.getVariableExpression()
if variable_expression is not None:
expr = variable_expression
else:
value = vdef.getVariableValue(object=object)
if expr is not None and expr != '':
......
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