Commit 24b1367b authored by iv's avatar iv

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

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