Commit 3a3ca8dd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! ERP5Workflow: DC Workflows are now ERP5 objects (!1378).

parent 84cb883b
......@@ -60,9 +60,10 @@ def createExpressionContext(sci):
'status': sci.status,
'kwargs': sci.kwargs,
'workflow': wf,
# Patch:
'scripts': {s.getReference(): s for s in wf.getScriptValueList()},
}
# Patch:
if WITH_LEGACY_WORKFLOW:
data['scripts'] = wf.scripts
return getEngine().getContext(data)
from Products.ERP5Type import WITH_LEGACY_WORKFLOW
......
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