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]);