Skip to content

Commit 7c82073

Browse files
authored
Fix casting of product status to reflect correct value. (#33)
1 parent 6bc3ba3 commit 7c82073

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Ometria_AbandonedCarts" setup_version="2.2.3"/>
3+
<module name="Ometria_AbandonedCarts" setup_version="2.2.4"/>
44
</config>

app/code/Ometria/Api/Controller/V2/Products.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ private function getProductData(ProductInterface $product)
283283
$productData[OmetriaProductInterface::IS_VARIANT] = (bool) $parentId != null ? true : false;
284284
$productData[OmetriaProductInterface::PARENT_ID] = $parentId;
285285
$productData[OmetriaProductInterface::ATTRIBUTES] = $this->getAttributes($product);
286-
$productData[OmetriaProductInterface::IS_ACTIVE] = (bool) $product->getStatus() == ProductStatus::STATUS_ENABLED;
286+
$productData[OmetriaProductInterface::IS_ACTIVE] = (bool) ($product->getStatus() == ProductStatus::STATUS_ENABLED);
287287
$productData[OmetriaProductInterface::STORES] = $product->getStoreIds();
288288
$productData[OmetriaProductInterface::IS_IN_STOCK] = $this->inventoryService->getStockStatus($product);
289289
$productData[OmetriaProductInterface::QTY] = $this->inventoryService->getSalableQuantity($product);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Ometria_Api" setup_version="2.2.3"/>
3+
<module name="Ometria_Api" setup_version="2.2.4"/>
44
</config>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Ometria_Core" setup_version="2.2.3"/>
3+
<module name="Ometria_Core" setup_version="2.2.4"/>
44
</config>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ometria/magento2",
33
"type": "magento2-module",
4-
"version": "2.2.3",
4+
"version": "2.2.4",
55
"description": "Dev composer package for Ometria Extension",
66
"authors": [
77
{

0 commit comments

Comments
 (0)