Skip to content

Commit

Permalink
run filter values through #facet_display_value so that query facets d…
Browse files Browse the repository at this point in the history
…isplay correctly
  • Loading branch information
Jeff Chiu committed Jan 11, 2017
1 parent 2b737af commit 59eb322
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def render_constraints_filters(my_params = params)
if advanced_query
advanced_query.filters.each_pair do |field, value_list|
label = facet_field_label(field)
values = Array(value_list).map { |v| facet_display_value(field, v) }
content << render_constraint_element(label,
safe_join(Array(value_list), " <strong class='text-muted constraint-connector'>OR</strong> ".html_safe),
safe_join(values, " <strong class='text-muted constraint-connector'>OR</strong> ".html_safe),
:remove => search_action_path(remove_advanced_filter_group(field, my_params).except(:controller, :action))
)
end
Expand Down

0 comments on commit 59eb322

Please sign in to comment.