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