From 52ffe3c89a747a07fbda23ea69d846f91e418e4d Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Wed, 6 Nov 2024 15:18:06 +0100 Subject: [PATCH] fix-sorted-by-label --- app/services/dossier_filter_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/dossier_filter_service.rb b/app/services/dossier_filter_service.rb index 54e700965..982675ade 100644 --- a/app/services/dossier_filter_service.rb +++ b/app/services/dossier_filter_service.rb @@ -58,7 +58,7 @@ class DossierFilterService .uniq when 'dossier_labels' dossiers.includes(table) - .order("#{self.class.sanitized_column(table, column)} #{order}") + .order("#{sanitized_column(table, column)} #{order}") .pluck(:id) .uniq when 'self', 'user', 'individual', 'etablissement', 'groupe_instructeur'