Commit f98b6ed8 authored by iv's avatar iv

ERP5Workflow: fix performance issue

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