Commit bf629244cab0f439d4bba9a76b18f96f23d258e7
1 parent
1d932cf7
Exists in
fix_sign_up_form
organization_ratings: fixes for empty body
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/organization_ratings/views/shared/_user_rating_container.html.erb
... | ... | @@ -31,7 +31,7 @@ |
31 | 31 | <p class="comment-body"> <%= user_rate.comment.body %> </p> |
32 | 32 | <% elsif user && user.is_admin? %> |
33 | 33 | <% rating_task = CreateOrganizationRatingComment.with_rating(user_rate) %> |
34 | - <p class="comment-body"> <%= rating_task.body %> </p> | |
34 | + <p class="comment-body"> <%= rating_task.body if rating_task.respond_to?(:body) %> </p> | |
35 | 35 | <% end %> |
36 | 36 | </div> |
37 | 37 | <%= @plugins.dispatch(:organization_ratings_plugin_container_extra_fields, user_rate).collect { |content| instance_exec(&content) }.join("") %> | ... | ... |