Commit 41a94a86 authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: fix the workflow history may get state id instead of state...

Workflow.py: fix the workflow history may get state id instead of state reference in the execution of action.
parent fdd20751
...@@ -1038,7 +1038,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject): ...@@ -1038,7 +1038,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
value = expr(econtext) value = expr(econtext)
status[id] = value status[id] = value
status['comment'] = 'Jump from %r to %r' % (old_state, new_state_id_no_prefix,) status['comment'] = 'Jump from %r to %r' % (self._getOb(old_state).getReference(), new_state_id_no_prefix,)
status[self.getStateVariable()] = new_state_id_no_prefix status[self.getStateVariable()] = new_state_id_no_prefix
tool = self.getParent() tool = self.getParent()
tool.setStatusOf(self.getId(), ob, status) tool.setStatusOf(self.getId(), ob, status)
......
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