Skip to content

Commit

Permalink
Merge pull request #10426 from colinux/fix-accuse-lecture-procedure-d…
Browse files Browse the repository at this point in the history
…raft

ETQ admin corrige l'acceptation de dossier d'une démarche brouillon avec accusé de lecture
  • Loading branch information
colinux authored May 16, 2024
2 parents 55ee9cd + 2d57ec4 commit c794f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/mail_template_presenter_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('')
Expand Down

0 comments on commit c794f65

Please sign in to comment.