Commit edeef5a0 authored by iv's avatar iv

ERP5Workflow: fix typo 'worflow_tool' and default value for transition

parent 0c838de0
......@@ -68,9 +68,9 @@ for workflow_item in portal_workflow.getInfoFor(ob=context, name='history',
transition = workflow.getTransitionValueById(value)
if transition:
if display:
value = transition.title or transition.actbox_name
value = transition.title or transition.actbox_name or value
else:
value = transition.getReference() or transition.actbox_name
value = transition.getReference() or transition.actbox_name or value
if display:
if key == 'error_message':
if same_type(value, ''):
......
......@@ -111,7 +111,7 @@ class TypesTool(TypeProvider):
except AttributeError:
pass
try:
worflow_tool = self.getPortalObject().portal_workflow
workflow_tool = self.getPortalObject().portal_workflow
workflow = workflow_tool.dynamic_class_generation_interaction_workflow
script_dict = {script.getReference(): script
for script in workflow.getScriptValueList()}
......
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