Merge pull request #1103 from sgmap/fix-notif-crasher

Add missing locals to partials called in the print template
This commit is contained in:
gregoirenovel 2017-12-14 16:07:35 +01:00 committed by GitHub
commit 4185ef2f04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -57,3 +57,7 @@ th {
}
}
}
.updated-at {
display: none;
}

View file

@ -13,7 +13,7 @@
- champs = @dossier.ordered_champs.decorate
- if champs.any?
= render partial: "champs", locals: { champs: champs, dossier: @dossier }
= render partial: "champs", locals: { champs: champs, dossier: @dossier, demande_seen_at: nil }
- if @dossier.procedure.use_api_carto
%h3 Cartographie
@ -91,7 +91,7 @@
%ul.messages-list
- @dossier.commentaires.each do |commentaire|
%li
= render partial: "new_gestionnaire/shared/commentaires/commentaire", locals: { commentaire: commentaire }
= render partial: "new_gestionnaire/shared/commentaires/commentaire", locals: { commentaire: commentaire, messagerie_seen_at: nil }
%script{ type: "text/javascript" }
window.print();