From ea7f2d59630c4693ee8be173ae4f0d84b7ae10f6 Mon Sep 17 00:00:00 2001 From: merdan Date: Sat, 21 May 2022 20:13:14 +0500 Subject: [PATCH] fix log create variant --- packages/Sarga/Shop/src/Repositories/ProductRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Sarga/Shop/src/Repositories/ProductRepository.php b/packages/Sarga/Shop/src/Repositories/ProductRepository.php index b7eee9aab..951ef792f 100644 --- a/packages/Sarga/Shop/src/Repositories/ProductRepository.php +++ b/packages/Sarga/Shop/src/Repositories/ProductRepository.php @@ -248,7 +248,7 @@ class ProductRepository extends WProductRepository # this is key! if a product has been filtered down to the same number of attributes that we filtered on, # we know that it has matched all of the requested filters. - $qb->groupBy('variants.id','variants.color'); + $qb->groupBy('variants.id','variants.size'); $qb->havingRaw('COUNT(*) = ' . count($attributeFilters)); }