Commit ac2cb3e5 authored by iv's avatar iv

ERP5Workflow: use getReference instead of accessing id attribute directly

parent 1453f27f
......@@ -321,7 +321,7 @@ def getSearchDialog(self, REQUEST=None):
# possible workflow states
for type_name in allowed_content_types:
for workflow in workflow_tool.getWorkflowsFor(type_name):
workflow_id = workflow.id
workflow_id = workflow.getReference()
state_var = workflow.getStateVariable()
if state_var in workflow_set:
......
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