From e2391717e31060aaa0e86520585ff54c96dd0405 Mon Sep 17 00:00:00 2001 From: Chris Pook Date: Wed, 13 Apr 2022 15:07:56 +0100 Subject: [PATCH] Fix undefined variable bug. (#39) --- app/code/Ometria/AbandonedCarts/etc/module.xml | 2 +- app/code/Ometria/Api/Controller/V1/Products.php | 2 +- app/code/Ometria/Api/etc/module.xml | 2 +- app/code/Ometria/Core/etc/module.xml | 2 +- composer.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/code/Ometria/AbandonedCarts/etc/module.xml b/app/code/Ometria/AbandonedCarts/etc/module.xml index 87198ae..231bba6 100755 --- a/app/code/Ometria/AbandonedCarts/etc/module.xml +++ b/app/code/Ometria/AbandonedCarts/etc/module.xml @@ -1,4 +1,4 @@ - + diff --git a/app/code/Ometria/Api/Controller/V1/Products.php b/app/code/Ometria/Api/Controller/V1/Products.php index 3e2dbdc..4265eb1 100755 --- a/app/code/Ometria/Api/Controller/V1/Products.php +++ b/app/code/Ometria/Api/Controller/V1/Products.php @@ -258,7 +258,7 @@ protected function serializeItem($item) $attributes = $this->getArrayKey($item, 'custom_attributes'); $attributes = $attributes ? $attributes : []; foreach ($attributes as $attribute) { - $full_attribute = $this->attributesFactory->create() + $fullAttribute = $this->attributesFactory->create() ->addFieldToFilter('attribute_code', $attribute['attribute_code']) ->getFirstItem(); diff --git a/app/code/Ometria/Api/etc/module.xml b/app/code/Ometria/Api/etc/module.xml index bc97d1d..3d28e07 100755 --- a/app/code/Ometria/Api/etc/module.xml +++ b/app/code/Ometria/Api/etc/module.xml @@ -1,4 +1,4 @@ - + diff --git a/app/code/Ometria/Core/etc/module.xml b/app/code/Ometria/Core/etc/module.xml index 49c646d..d58700b 100755 --- a/app/code/Ometria/Core/etc/module.xml +++ b/app/code/Ometria/Core/etc/module.xml @@ -1,4 +1,4 @@ - + diff --git a/composer.json b/composer.json index 5f86c06..9bf785d 100755 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "ometria/magento2", "type": "magento2-module", - "version": "2.5.0", + "version": "2.5.1", "description": "Dev composer package for Ometria Extension", "authors": [ {