Commit 5dba2575 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

WorkflwoState.py: fix the compatibility for old DC Workflow state title getter.

parent 188c1fe2
...@@ -86,7 +86,7 @@ class TitleGetter(BaseGetter): ...@@ -86,7 +86,7 @@ class TitleGetter(BaseGetter):
def __call__(self, instance): def __call__(self, instance):
portal_workflow = instance.getPortalObject().portal_workflow portal_workflow = instance.getPortalObject().portal_workflow
wf = portal_workflow.getWorkflowById(self._key) wf = portal_workflow.getWorkflowById(self._key)
return wf._getWorkflowStateOf(instance).getTitle() return wf._getWorkflowStateOf(instance).title
psyco.bind(__call__) psyco.bind(__call__)
......
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