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

Workflow.py: In a transition, if we use...

Workflow.py: In a transition, if we use '%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=%(transition_id)s' in field 'Display in Action Box URL', it will return the reference of transition instead of its id.
parent 456f4d6c
......@@ -344,7 +344,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
if fmt_data is None:
fmt_data = TemplateDict()
fmt_data._push(info)
fmt_data._push({'transition_id': tid})
fmt_data._push({'transition_id': tdef.getReference()})
res.append((tid, {
'id': tdef.getReference(),
'name': tdef.actbox_name % fmt_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