Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Revert change.

Matthew Kennedyd767fd859723
diff --git a/core/app/models/concerns/spree/product_scopes.rb b/core/app/models/concerns/spree/product_scopes.rb
index b66a6a9b9e..048d2b9535 100644
--- a/core/app/models/concerns/spree/product_scopes.rb
+++ b/core/app/models/concerns/spree/product_scopes.rb
@@ -108,7 +108,7 @@ module Spree
].join(', ')
).
group(:id).
- order(position: :asc)
+ order(min_position: :asc)
end
# a scope that finds all products having property specified by name, object or id
diff --git a/frontend/app/controllers/spree/taxons_controller.rb b/frontend/app/controllers/spree/taxons_controller.rb
index ac4478cb39..37251482fc 100644
--- a/frontend/app/controllers/spree/taxons_controller.rb
+++ b/frontend/app/controllers/spree/taxons_controller.rb
@@ -39,8 +39,7 @@ module Spree
search_params = params.merge(
current_store: current_store,
taxon: @taxon,
- include_images: true,
- distinct: true
+ include_images: true
)
@searcher = build_searcher(search_params)