From 2eda3b193c1b9ceaf96eec8af8713ebfe72a0991 Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Wed, 4 Mar 2020 15:04:37 +0100 Subject: [PATCH] fix missing procedure in AdministrationMailer#dossier_expiration_summary --- .../dossier_expiration_summary.html.haml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/administration_mailer/dossier_expiration_summary.html.haml b/app/views/administration_mailer/dossier_expiration_summary.html.haml index 6a15b618c..74097d248 100644 --- a/app/views/administration_mailer/dossier_expiration_summary.html.haml +++ b/app/views/administration_mailer/dossier_expiration_summary.html.haml @@ -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