Skip to content

Commit

Permalink
Turn on edit mode for product repository when adding children
Browse files Browse the repository at this point in the history
This should fix the issue with the configurable products not having any options with Bulk and Async API.
Related issue: #20366
  • Loading branch information
pedrosousa13 authored and amol2jcommerce committed Apr 12, 2019
1 parent 51fcebd commit 1ec99ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function getChildren($sku)
*/
public function addChild($sku, $childSku)
{
$product = $this->productRepository->get($sku);
$product = $this->productRepository->get($sku, true);
$child = $this->productRepository->get($childSku);

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

0 comments on commit 1ec99ee

Please sign in to comment.