Skip to content
Snippets Groups Projects
Unverified Commit cf165cb8 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix search results when result.about_object is nil

parent 2a047203
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,7 @@
<%
@results.each do |result|
object = result.about_object
next unless can?(:read, object)
l10n = result.about_localization
next unless object.present? && can?(:read, object)
# communication_website_post
path_class = object.class.polymorphic_name.parameterize.underscore
# admin_communication_website_post_path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment