Commit 55299097 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

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

parent 61daf2ba
Pipeline #26665 failed with stage
in 0 seconds
...@@ -61,8 +61,9 @@ def createExpressionContext(sci): ...@@ -61,8 +61,9 @@ def createExpressionContext(sci):
'kwargs': sci.kwargs, 'kwargs': sci.kwargs,
'workflow': wf, 'workflow': wf,
} }
# Patch: # BBB: support 'scripts.xxx' in TALES expression for legacy workflow,
if WITH_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 data['scripts'] = wf.scripts
return getEngine().getContext(data) 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