From 23ab1425093227e8a9a80ef3c433e44bb311c73c Mon Sep 17 00:00:00 2001 From: merdan Date: Fri, 20 May 2022 15:25:27 +0500 Subject: [PATCH] test --- 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 2cfbee6d4..70ce554e8 100644 --- a/packages/Sarga/Shop/src/Repositories/ProductRepository.php +++ b/packages/Sarga/Shop/src/Repositories/ProductRepository.php @@ -585,7 +585,7 @@ class ProductRepository extends WProductRepository if (!empty($colorVariant['size_variants'])) foreach ($colorVariant['size_variants'] as $sizeVariant) { if($variant = $this->findOneByField('sku', "{$data['product_group_id']}-{$colorVariant['product_number']}-{$sizeVariant['itemNumber']}")) - $this->updateAttribute($variant->id,$sizeVariant); + $this->updateAttribute($variant,$sizeVariant); } elseif($variant = $this->findOneByField('sku', "{$data['product_group_id']}-{$colorVariant['product_number']}")) {