Skip to content

Commit c6eb6c3

Browse files
author
Oleksii Korshenko
authored
MAGETWO-66430: Fix Rest Api - GET /V1/configurable-products/{sku}/children not giving ID in response #5446
2 parents 65a3b9d + dd3228a commit c6eb6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Model/LinkManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getChildren($sku)
8282
foreach ($child->getAttributes() as $attribute) {
8383
$attrCode = $attribute->getAttributeCode();
8484
$value = $child->getDataUsingMethod($attrCode) ?: $child->getData($attrCode);
85-
if (null !== $value && $attrCode != 'entity_id') {
85+
if (null !== $value) {
8686
$attributes[$attrCode] = $value;
8787
}
8888
}

0 commit comments

Comments
 (0)