Commit 735dda1ade8ab19bdc31819b357647344f28cb07
1 parent
b6dbf2d2
Exists in
master
and in
29 other branches
Fix for page not resetting when filter changed on Product search
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/helpers/search_helper.rb
... | ... | @@ -69,6 +69,7 @@ module SearchHelper |
69 | 69 | id = facet[:solr_field].to_s |
70 | 70 | params[:facet] ||= {} |
71 | 71 | params[:facet][id] ||= {} |
72 | + params[:page] = {} | |
72 | 73 | |
73 | 74 | selected = facet[:label_id].nil? ? params[:facet][id] == value : params[:facet][id][facet[:label_id]].to_a.include?(value) |
74 | 75 | ... | ... |