Merge pull request #10092 from mfo/US/fix-dossier-vide

correctif(dossier.pdf): ETQ usager, je souhaite pouvoir visualiser un formularie au format PDF
This commit is contained in:
mfo 2024-03-11 10:56:02 +00:00 committed by GitHub
commit d9b6db8ebc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,12 +186,11 @@ def add_champs(pdf, champs)
champs.each do |champ| champs.each do |champ|
if champ.type == 'Champs::RepetitionChamp' if champ.type == 'Champs::RepetitionChamp'
add_libelle(pdf, champ) add_libelle(pdf, champ)
3.times { champ.add_row(champ.type_de_champ.revision) } added_champs = champ.add_row(champ.type_de_champ.revision)
3.times do 3.times do
champ.rows.each do |row| added_champs.each do |champ|
row.each do |inner_champ| render_single_champ(pdf, champ)
render_single_champ(pdf, inner_champ)
end
end end
end end
else else