Skip to content

Commit

Permalink
Fix casting of product status to reflect correct value. (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-pook authored Oct 4, 2021
1 parent 6bc3ba3 commit 7c82073
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/code/Ometria/AbandonedCarts/etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Ometria_AbandonedCarts" setup_version="2.2.3"/>
<module name="Ometria_AbandonedCarts" setup_version="2.2.4"/>
</config>
2 changes: 1 addition & 1 deletion app/code/Ometria/Api/Controller/V2/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private function getProductData(ProductInterface $product)
$productData[OmetriaProductInterface::IS_VARIANT] = (bool) $parentId != null ? true : false;
$productData[OmetriaProductInterface::PARENT_ID] = $parentId;
$productData[OmetriaProductInterface::ATTRIBUTES] = $this->getAttributes($product);
$productData[OmetriaProductInterface::IS_ACTIVE] = (bool) $product->getStatus() == ProductStatus::STATUS_ENABLED;
$productData[OmetriaProductInterface::IS_ACTIVE] = (bool) ($product->getStatus() == ProductStatus::STATUS_ENABLED);
$productData[OmetriaProductInterface::STORES] = $product->getStoreIds();
$productData[OmetriaProductInterface::IS_IN_STOCK] = $this->inventoryService->getStockStatus($product);
$productData[OmetriaProductInterface::QTY] = $this->inventoryService->getSalableQuantity($product);
Expand Down
2 changes: 1 addition & 1 deletion app/code/Ometria/Api/etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Ometria_Api" setup_version="2.2.3"/>
<module name="Ometria_Api" setup_version="2.2.4"/>
</config>
2 changes: 1 addition & 1 deletion app/code/Ometria/Core/etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Ometria_Core" setup_version="2.2.3"/>
<module name="Ometria_Core" setup_version="2.2.4"/>
</config>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ometria/magento2",
"type": "magento2-module",
"version": "2.2.3",
"version": "2.2.4",
"description": "Dev composer package for Ometria Extension",
"authors": [
{
Expand Down

0 comments on commit 7c82073

Please sign in to comment.