Skip to content

Commit

Permalink
Update spatial_search_behavior.rb
Browse files Browse the repository at this point in the history
Fix for rubocop safe navigation and string literals
  • Loading branch information
ewlarson committed Jul 30, 2019
1 parent 31d766d commit aec4a3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def hide_suppressed_records(solr_params)

# Do not suppress action_documents method calls for individual documents
# ex. CatalogController#web_services (exportable views)
return if solr_params[:q] && solr_params[:q].include?("{!lucene}layer_slug_s:")
return if solr_params[:q]&.include?('{!lucene}layer_slug_s:')

solr_params[:fq] ||= []
solr_params[:fq] << '-suppressed_b: true'
Expand Down

0 comments on commit aec4a3f

Please sign in to comment.