Commit 55299097 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

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

parent 61daf2ba
......@@ -61,8 +61,9 @@ def createExpressionContext(sci):
'kwargs': sci.kwargs,
'workflow': wf,
}
# Patch:
if WITH_LEGACY_WORKFLOW:
# BBB: support 'scripts.xxx' in TALES expression for legacy workflow,
# that should be 'workflow.script_xxx' instead in ERP5 Workflow.
if WITH_LEGACY_WORKFLOW and wf.meta_type == 'Workflow':
data['scripts'] = wf.scripts
return getEngine().getContext(data)
......
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