Skip to content

Commit 1ec99ee

Browse files
pedrosousa13amol2jcommerce
authored andcommitted
Turn on edit mode for product repository when adding children
This should fix the issue with the configurable products not having any options with Bulk and Async API. Related issue: magento#20366
1 parent 51fcebd commit 1ec99ee

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
@@ -110,7 +110,7 @@ public function getChildren($sku)
110110
*/
111111
public function addChild($sku, $childSku)
112112
{
113-
$product = $this->productRepository->get($sku);
113+
$product = $this->productRepository->get($sku, true);
114114
$child = $this->productRepository->get($childSku);
115115

116116
$childrenIds = array_values($this->configurableType->getChildrenIds($product->getId())[0]);

0 commit comments

Comments
 (0)