Commit b1f656fa authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: when before script of a transition fails, store the error message in...

Bug fix: when before script of a transition fails, store the error message in the workflow variable error_message.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2502 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6497a95
......@@ -603,7 +603,7 @@ class ERP5DCWorkflowDefinition (DCWorkflowDefinition):
tool.setStatusOf(self.id, ob, status)
sci = StateChangeInfo(
ob, self, status, tdef, old_sdef, new_sdef, kwargs)
sci.setWorkflowVariable(ob, error_message = before_script_error_message)
sci.setWorkflowVariable(ob, workflow_id=self.id, error_message = before_script_error_message)
return new_sdef
# Update state.
......
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