Merge pull request #11024 from demarches-simplifiees/fix-sorted-by-label

bug sur le tableau si on trie par ordre de labels
This commit is contained in:
LeSim 2024-11-06 14:27:39 +00:00 committed by GitHub
commit bbe6ab6b3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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'