From 66855e77b6b1f2b1172f36ed20f3b8ee47ae985a Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 30 May 2018 15:03:44 +0200 Subject: [PATCH] Guard for champ SIRET without etablissement --- app/views/new_gestionnaire/dossiers/_champs.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/new_gestionnaire/dossiers/_champs.html.haml b/app/views/new_gestionnaire/dossiers/_champs.html.haml index e980c11ec..a0e203778 100644 --- a/app/views/new_gestionnaire/dossiers/_champs.html.haml +++ b/app/views/new_gestionnaire/dossiers/_champs.html.haml @@ -51,7 +51,8 @@ = "#{c.libelle} :" %td.rich-text %span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) } - = render partial: "new_gestionnaire/dossiers/identite_entreprise", locals: { etablissement: c.etablissement } + - if c.etablissement.present? + = render partial: "new_gestionnaire/dossiers/identite_entreprise", locals: { etablissement: c.etablissement } - else %th.libelle = "#{c.libelle} :"