Skip to content

Commit d18efbe

Browse files
author
Andrey K
committed
Fix Rest Api - GET get /V1/configurable-products/{sku}/children not giving ID in response
1 parent 3be18f3 commit d18efbe

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
@@ -72,7 +72,7 @@ public function getChildren($sku)
7272
foreach ($child->getAttributes() as $attribute) {
7373
$attrCode = $attribute->getAttributeCode();
7474
$value = $child->getDataUsingMethod($attrCode) ?: $child->getData($attrCode);
75-
if (null !== $value && $attrCode != 'entity_id') {
75+
if (null !== $value) {
7676
$attributes[$attrCode] = $value;
7777
}
7878
}

0 commit comments

Comments
 (0)