We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7c7d31 commit 1d67209Copy full SHA for 1d67209
app/code/Magento/Bundle/Model/Option/SaveAction.php
@@ -153,7 +153,10 @@ private function saveOptionItem(
153
throw new CouldNotSaveException(__("The option couldn't be saved."), $e);
154
}
155
156
- $this->addChildren->addChildren($bundleProduct, (int)$option->getOptionId(), $linksToAdd);
+ /** @var LinkInterface $linkedProduct */
157
+ foreach ($linksToAdd as $linkedProduct) {
158
+ $this->linkManagement->addChild($bundleProduct, $option->getOptionId(), $linkedProduct);
159
+ }
160
161
162
/**
0 commit comments