From d18efbee1c192e1c9096c43f9fb3b26cb01571ee Mon Sep 17 00:00:00 2001 From: Andrey K Date: Mon, 4 Jul 2016 15:47:19 +0300 Subject: [PATCH] Fix Rest Api - GET get /V1/configurable-products/{sku}/children not giving ID in response --- app/code/Magento/ConfigurableProduct/Model/LinkManagement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/ConfigurableProduct/Model/LinkManagement.php b/app/code/Magento/ConfigurableProduct/Model/LinkManagement.php index 8b7e39adeb8f5..de325aace3ff7 100644 --- a/app/code/Magento/ConfigurableProduct/Model/LinkManagement.php +++ b/app/code/Magento/ConfigurableProduct/Model/LinkManagement.php @@ -72,7 +72,7 @@ public function getChildren($sku) foreach ($child->getAttributes() as $attribute) { $attrCode = $attribute->getAttributeCode(); $value = $child->getDataUsingMethod($attrCode) ?: $child->getData($attrCode); - if (null !== $value && $attrCode != 'entity_id') { + if (null !== $value) { $attributes[$attrCode] = $value; } }