From c9f424b30dbff77fd3b4cd33efd5659a322fcca2 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 25 Jan 2021 15:01:07 +0800 Subject: [PATCH] fix error --- app/views/email/edit_email.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/email/edit_email.html.erb b/app/views/email/edit_email.html.erb index 62d936d..8acc41c 100644 --- a/app/views/email/edit_email.html.erb +++ b/app/views/email/edit_email.html.erb @@ -31,9 +31,9 @@ <% elsif ['property_usage','note'].include?(k) %> <%= property[k].collect{|k,v| v}.uniq.join('/') rescue nil %> <% elsif k=='owners' %> - <%= property.owner_profiles.collect{|v| v.name}.join(', ') %> + <%= property.owner_profiles.collect{|v| v.name}.join(', ') rescue nil %> <% elsif ['category','property_location'].include?(k) %> - <%= v.title %> + <%= v.title rescue nil %> <% elsif k == 'can_be_hired' %> <%= v ? t('yes_') : t('no_') %> <% else %>