mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Prevent duplicate products in search results
Dunno why, but the product was appearing once for each variant.
This commit is contained in:
@@ -72,7 +72,7 @@ module Admin
|
||||
Spree::Product.active
|
||||
end
|
||||
|
||||
scope.includes(product_query_includes)
|
||||
scope.includes(product_query_includes).distinct
|
||||
end
|
||||
|
||||
def ransack_query
|
||||
|
||||
Reference in New Issue
Block a user