Merge pull request #4858 from betagouv/fix-missing-procedure

fix missing procedure in AdministrationMailer#dossier_expiration_summary
This commit is contained in:
Keirua 2020-03-05 10:39:34 +01:00 committed by GitHub
commit 3614073cca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,10 @@
- @expired_dossiers.group_by(&:procedure).each do |procedure, dossiers|
%dl
%dt
#{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
- if procedure.present?
#{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
- else
Procédure supprimée
%dd
= dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe
@ -14,7 +17,10 @@
- @expiring_dossiers.group_by(&:procedure).each do |procedure, dossiers|
%dl
%dt
#{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
- if procedure.present?
#{procedure.libelle} (#{link_to(procedure.id, manager_procedure_url(procedure))}) :
- else
Procédure supprimée
%dd
= dossiers.map { |d| link_to(d.id, manager_dossier_url(d)) }.join(', ').html_safe