Commit 55f199aa authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Workflow.py: deploy getReference.

parent ae542497
......@@ -125,8 +125,8 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
"""
Generate a key used in the workflow history.
"""
history_key = self.unrestrictedTraverse(self.getRelativeUrl()).getId()
return '_'.join(history_key.split('_')[1:])
history_key = self.unrestrictedTraverse(self.getRelativeUrl()).getReference()
return history_key
def _updateWorkflowHistory(self, document, status_dict):
"""
......
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