Merge pull request #10426 from colinux/fix-accuse-lecture-procedure-draft
ETQ admin corrige l'acceptation de dossier d'une démarche brouillon avec accusé de lecture
This commit is contained in:
commit
c794f654ea
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ class MailTemplatePresenterService
|
|||
|
||||
def self.create_commentaire_for_state(dossier, state)
|
||||
if dossier.procedure.accuse_lecture? && Dossier::TERMINE.include?(state)
|
||||
CommentaireService.create!(CONTACT_EMAIL, dossier, body: I18n.t('layouts.mailers.accuse_lecture.commentaire_html', service: dossier.procedure.service.nom))
|
||||
CommentaireService.create!(CONTACT_EMAIL, dossier, body: I18n.t('layouts.mailers.accuse_lecture.commentaire_html', service: dossier.procedure.service&.nom))
|
||||
else
|
||||
service = new(dossier, state)
|
||||
body = ["<p>[#{service.safe_subject}]</p>", service.safe_body].join('')
|
||||
|
|
Loading…
Reference in a new issue