Merge pull request #1103 from sgmap/fix-notif-crasher
Add missing locals to partials called in the print template
This commit is contained in:
commit
4185ef2f04
2 changed files with 6 additions and 2 deletions
|
@ -57,3 +57,7 @@ th {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.updated-at {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue