Merge pull request #9969 from demarches-simplifiees/fix-missing-local-in-partial-user-infos

Instructeur: fix bug pour imprimer un dossier rempli par un tiers
This commit is contained in:
Colin Darie 2024-02-07 14:24:48 +00:00 committed by GitHub
commit f15966bddb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@
%h2 Identité du demandeur %h2 Identité du demandeur
= render partial: "shared/dossiers/user_infos", locals: { user_deleted: @dossier.user_deleted?, email: @dossier.user_email_for(:display), for_tiers: @dossier.for_tiers? } = render partial: "shared/dossiers/user_infos", locals: { user_deleted: @dossier.user_deleted?, email: @dossier.user_email_for(:display), for_tiers: @dossier.for_tiers?, beneficiaire_mail: @dossier.for_tiers? ? @dossier.individual.email : "" }
- if @dossier.etablissement.present? - if @dossier.etablissement.present?
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: @dossier.etablissement, profile: 'instructeur' } = render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: @dossier.etablissement, profile: 'instructeur' }