mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
split_products_by_distributor was not written with pre-pagination by searcher in mind, resulting in silently dropped products. Disable pagination at searcher.
This commit is contained in:
@@ -3,6 +3,14 @@ require 'spree/core/search/base'
|
||||
module OpenFoodWeb
|
||||
class Searcher < Spree::Core::Search::Base
|
||||
|
||||
# Do not perform pagination
|
||||
def retrieve_products
|
||||
@products_scope = get_base_scope
|
||||
curr_page = page || 1
|
||||
|
||||
@products = @products_scope.includes([:master])
|
||||
end
|
||||
|
||||
def get_base_scope
|
||||
base_scope = super
|
||||
|
||||
|
||||
Reference in New Issue
Block a user