correctif(filtres): utilise la derniere version du type de champs de sorte a avoir les bons types

This commit is contained in:
Martin 2023-11-14 09:32:25 +01:00 committed by mfo
parent fd1f33b6e5
commit 80f2771c05

View file

@ -419,7 +419,7 @@ class ProcedurePresentation < ApplicationRecord
TypeDeChamp
.joins(:revision_types_de_champ)
.where(revision_types_de_champ: { revision_id: procedure.revisions })
.order(:created_at)
.order(created_at: :desc)
.find_by(stable_id: column)
end