Merge pull request #4846 from betagouv/fix/4814-fix-bug-error

fix/4814-fix-bug-error
This commit is contained in:
Kara Diaby 2020-02-28 16:48:26 +01:00 committed by GitHub
commit a8ccd53c8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ class Admin::AttestationTemplatesController < AdminController
render 'admin/attestation_templates/show', formats: [:pdf]
else
flash.alert = attestation_template.errors.full_messages.join('<br>')
flash.alert = attestation.errors.full_messages.join('<br>')
end
end