lib/blacklight/solr/search_builder_behavior.rb in blacklight-7.0.1 vs lib/blacklight/solr/search_builder_behavior.rb in blacklight-7.1.0.alpha

- old
+ new

@@ -164,21 +164,21 @@ end ### # copy sorting params from BL app over to solr def add_sorting_to_solr(solr_parameters) - solr_parameters[:sort] = sort unless sort.blank? + solr_parameters[:sort] = sort if sort.present? end # Remove the group parameter if we've faceted on the group field (e.g. for the full results for a group) def add_group_config_to_solr solr_parameters if blacklight_params[:f] && blacklight_params[:f][grouped_key_for_results] solr_parameters[:group] = false end end def add_facet_paging_to_solr(solr_params) - return unless facet.present? + return if facet.blank? facet_config = blacklight_config.facet_fields[facet] # Now override with our specific things for fetching facet values facet_ex = facet_config.respond_to?(:ex) ? facet_config.ex : nil