Skip to content

Commit 1d67209

Browse files
committed
ACP2E-1347: Bundle product save slow
1 parent c7c7d31 commit 1d67209

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Bundle/Model/Option/SaveAction.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ private function saveOptionItem(
153153
throw new CouldNotSaveException(__("The option couldn't be saved."), $e);
154154
}
155155

156-
$this->addChildren->addChildren($bundleProduct, (int)$option->getOptionId(), $linksToAdd);
156+
/** @var LinkInterface $linkedProduct */
157+
foreach ($linksToAdd as $linkedProduct) {
158+
$this->linkManagement->addChild($bundleProduct, $option->getOptionId(), $linkedProduct);
159+
}
157160
}
158161

159162
/**

0 commit comments

Comments
 (0)