Commit adfde92e authored by Sebastien Robin's avatar Sebastien Robin

this dialog assume that the simulation state in in catalog table

This fix only make the code consistent with the above assumption.
We should later allow getting state in another table than catalog,
but then the design of this script will need to be reviewed in
order to not do many useless sql queries
parent cb274231
......@@ -58,9 +58,9 @@ def getDocumentGroupByWorkflowStateList(self, form_id='', **kw):
listbox = getattr(form, 'listbox', None)
# guess all column name from catalog schema
possible_state_list = [column_name for column_name in
possible_state_list = [column_name.split('.')[1] for column_name in
self.getPortalObject().portal_catalog.getSQLCatalog().getColumnMap() if
column_name.endswith('state') and '.' not in column_name]
column_name.startswith('catalog.') and column_name.endswith('state')]
# If there are checked uids, only use checked uids.
selection_uid_list = selection_tool.getSelectionCheckedUidsFor(selection_name)
......
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