diff --git a/product/ERP5Type/patches/WorkflowTool.py b/product/ERP5Type/patches/WorkflowTool.py index 868678a2d6f931f85b76d97aaf38345846e87b7e..0d6a4f2dfcaa1f38010c5ec6907b7e9f94513479 100644 --- a/product/ERP5Type/patches/WorkflowTool.py +++ b/product/ERP5Type/patches/WorkflowTool.py @@ -543,8 +543,12 @@ def WorkflowTool_refreshWorklistCache(self): portal_catalog = getToolByName(self, 'portal_catalog') search_result = portal_catalog.unrestrictedSearchResults acceptable_key_dict = portal_catalog.getSQLCatalog().getColumnMap() - table_column_id_set = ImmutableSet([COUNT_COLUMN_TITLE, 'security_uid', 'simulation_state', 'validation_state', 'portal_type', 'owner']) - security_column_id_list = ['security_uid'] + # XXX: those hardcoded lists should be grabbed from the table dynamicaly + # (and cached). + table_column_id_set = ImmutableSet([ + COUNT_COLUMN_TITLE, 'security_uid', 'simulation_state', + 'validation_state', 'portal_type', 'owner']) + security_column_id_list = ['security_uid', 'owner'] (worklist_list_grouped_by_condition, worklist_metadata) = \ groupWorklistListByCondition( worklist_dict=worklist_dict,