Merge pull request #10141 from tchak/fix-rows-order

fix(champs): fix rows order
This commit is contained in:
Paul Chavard 2024-03-18 16:56:21 +00:00 committed by GitHub
commit c5892a1ca2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,9 @@ class Champs::RepetitionChamp < Champ
def rows
dossier
.champs_for_revision(scope: type_de_champ)
.group_by(&:row_id).values
.group_by(&:row_id)
.sort
.map(&:second)
end
def row_ids