Permalink
Browse files

Don't delete search and taxon information in shared products pagination.

It is necessary to retain these values so that when the next page button is pressed the search and taxon information is preserved for each subsequent page
  • Loading branch information...
1 parent 3e626c5 commit 84dca67010e361709528aae18ff4f99b92da3916 @radar radar committed May 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/app/views/spree/shared/_products.html.erb
View
6 core/app/views/spree/shared/_products.html.erb
@@ -26,6 +26,6 @@
</ul>
<% end %>
-<% if paginated_products.respond_to?(:num_pages)
- params.delete(:taxon)
-%><%= paginate paginated_products %><% end %>
+<% if paginated_products.respond_to?(:num_pages) %>
+ <%= paginate paginated_products %>
+<% end %>

0 comments on commit 84dca67

Please sign in to comment.