fix-sorted-by-label

This commit is contained in:
Lisa Durand 2024-11-06 15:18:06 +01:00
parent 4be4f5136e
commit 52ffe3c89a
No known key found for this signature in database
GPG key ID: 0DF91F2CA1E8B816

View file

@ -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'