From 559c33564270bb3cd1f4b2665587f0b98eae409d Mon Sep 17 00:00:00 2001 From: pedrodelyra Date: Mon, 27 Jul 2015 17:06:49 -0300 Subject: [PATCH] Fix absence comment's displaying. --- views/comments_extra_field.html.erb | 2 +- views/communities_ratings_extra_fields_show_institution.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/views/comments_extra_field.html.erb b/views/comments_extra_field.html.erb index 71419c8..0fb257c 100644 --- a/views/comments_extra_field.html.erb +++ b/views/comments_extra_field.html.erb @@ -1,6 +1,6 @@
<%= label_tag "input_institution", _("Organization name or Enterprise name")%> - + <%= content_tag(:div, _("No institution found"), diff --git a/views/communities_ratings_extra_fields_show_institution.html.erb b/views/communities_ratings_extra_fields_show_institution.html.erb index 4de4153..05b234c 100644 --- a/views/communities_ratings_extra_fields_show_institution.html.erb +++ b/views/communities_ratings_extra_fields_show_institution.html.erb @@ -1,7 +1,7 @@ -<% if user_rating.comment.institution %> +<% if user_rating.comment and user_rating.comment.institution %>
- Institution : <%= user_rating.comment.institution.name %> + Institution : <%= user_rating.comment.institution.name unless user_rating.comment.nil? %>
<% end %> -- libgit2 0.21.2