Commit e6be3ce9618ffb1868d941db4f1f496afe27b553
1 parent
1c452394
Exists in
stable-spb-1.5
organization_ratings: fixes for empty body
(cherry picked from commit bf629244cab0f439d4bba9a76b18f96f23d258e7)
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("") %> | ... | ... |