Skip to content

Commit

Permalink
Merge pull request #10436 from spark-solutions/fix-plp-searcher-from-…
Browse files Browse the repository at this point in the history
…multi-domain

Fix PLP searcher (spree-multi-domain)
  • Loading branch information
damianlegawiec committed Aug 14, 2020
2 parents bd71589 + 4e222a1 commit 44c45c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/controllers/spree/products_controller.rb
Expand Up @@ -9,7 +9,7 @@ class ProductsController < Spree::StoreController
respond_to :html

def index
@searcher = build_searcher(params.merge(include_images: true))
@searcher = build_searcher(params.merge(include_images: true, current_store_id: current_store.id))
@products = @searcher.retrieve_products

last_modified = @products.maximum(:updated_at)&.utc if @products.respond_to?(:maximum)
Expand Down

0 comments on commit 44c45c0

Please sign in to comment.