From 7ecb02f0fd73379224b0a24d50f5c17096f65e4b Mon Sep 17 00:00:00 2001 From: merdan Date: Tue, 28 Jun 2022 15:47:28 +0500 Subject: [PATCH] order to manat --- packages/Sarga/API/Http/Controllers/IntegrationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Sarga/API/Http/Controllers/IntegrationController.php b/packages/Sarga/API/Http/Controllers/IntegrationController.php index 9a5987011..94b097c46 100644 --- a/packages/Sarga/API/Http/Controllers/IntegrationController.php +++ b/packages/Sarga/API/Http/Controllers/IntegrationController.php @@ -216,7 +216,7 @@ class IntegrationController extends Controller private function updateAttribute($product,$data){ - if(isset($data['sellable']) && !$data['sellable']){ + if(isset($data['sellable']) && $data['sellable']===false){ Log::info($data); //$attribute = $this->attributeRepository->findOneByField('code', 'status'); status id = 8 $this->attributeValueRepository->updateOrCreate(['product_id'=>$product->id,'attribute_id'=>8],['boolean_value'=>0]);