From 488010120214020d490b7df0005d2f558083c37b Mon Sep 17 00:00:00 2001 From: JC Date: Mon, 23 Jan 2017 17:18:57 +0100 Subject: [PATCH] Fixing nomethoderror for opensimplif --- app/views/backoffice/dossiers/_list.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/backoffice/dossiers/_list.html.haml b/app/views/backoffice/dossiers/_list.html.haml index 48be129a5..27b2b6ca1 100644 --- a/app/views/backoffice/dossiers/_list.html.haml +++ b/app/views/backoffice/dossiers/_list.html.haml @@ -42,9 +42,9 @@ - if preference.table.nil? || preference.table.empty? - value = dossier.decorate.public_send(preference.attr_decorate) - elsif preference.table == 'champs' - - value = dossier.champs.find_by_type_de_champ_id(preference.attr).value + - value = dossier.champs.find_by_type_de_champ_id(preference.attr).value rescue nil - elsif preference.table == 'champs_private' - - value = dossier.champs_private.find_by_type_de_champ_id(preference.attr).value + - value = dossier.champs_private.find_by_type_de_champ_id(preference.attr).value rescue nil - else - begin - value = dossier.public_send(preference.table).decorate.public_send(preference.attr_decorate)