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 .uniq
when 'dossier_labels' when 'dossier_labels'
dossiers.includes(table) dossiers.includes(table)
.order("#{self.class.sanitized_column(table, column)} #{order}") .order("#{sanitized_column(table, column)} #{order}")
.pluck(:id) .pluck(:id)
.uniq .uniq
when 'self', 'user', 'individual', 'etablissement', 'groupe_instructeur' when 'self', 'user', 'individual', 'etablissement', 'groupe_instructeur'