Skip to content

Commit b3b6c90

Browse files
authored
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: #20366
1 parent ca42e42 commit b3b6c90

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

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

0 commit comments

Comments
 (0)