diff --git a/product/ERP5Type/patches/WorkflowTool.py b/product/ERP5Type/patches/WorkflowTool.py index 0d6a4f2dfcaa1f38010c5ec6907b7e9f94513479..2e00f67c612daed84e09526498bc33240d0cbf42 100644 --- a/product/ERP5Type/patches/WorkflowTool.py +++ b/product/ERP5Type/patches/WorkflowTool.py @@ -553,6 +553,7 @@ def WorkflowTool_refreshWorklistCache(self): groupWorklistListByCondition( worklist_dict=worklist_dict, acceptable_key_dict=acceptable_key_dict) + assert COUNT_COLUMN_TITLE in table_column_id_set for grouped_worklist_dict in worklist_list_grouped_by_condition: # Generate the query for this worklist_list (total_criterion_id_list, query) = \ @@ -565,7 +566,6 @@ def WorkflowTool_refreshWorklistCache(self): total_criterion_id_list.append(security_column_id) group_by_expression = ', '.join(total_criterion_id_list) assert COUNT_COLUMN_TITLE not in total_criterion_id_list - assert COUNT_COLUMN_TITLE in table_column_id_set select_expression = 'count(*) as %s, %s' % (COUNT_COLUMN_TITLE, group_by_expression) search_result_kw = {'select_expression': select_expression,