Commit 1a149fbf authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: fix variable for_status checking.

parent ff6846c9
......@@ -657,7 +657,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
for vdef in self.objectValues(portal_type='Variable'):
id = vdef.getId()
id_no_suffix = vdef.getReference()
if vdef.for_status == 0:
if not vdef.for_status or vdef.for_status == 0:
continue
expr = None
if id_no_suffix in state_values:
......
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