Commit f73a6a34 authored by iv's avatar iv

ERP5Workflow: in a folder, state should be searched by reference not by id

if using id, it would check for simulation state to be for example in state_draft (id)
instead of draft (reference)
This was breaking testFunctionalCore page_templates_zuite/testSearchDialog
parent 5948dc7c
......@@ -340,7 +340,7 @@ def getSearchDialog(self, REQUEST=None):
field.manage_edit_xmlrpc(dict(
form_id='Base_viewDialogFieldLibrary',
field_id='your_category_list'))
items = sorted([(translateString(state.title), state.id) for state in state_list],
items = sorted([(translateString(state.title), state.getReference()) for state in state_list],
key=lambda state:str(state[0]))
field._surcharged_edit(
dict(title=translateString(workflow.title),
......
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