Skip to content

Commit 9aeefd6

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/code/Magento/Bundle/Model/LinkManagement.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,14 @@ public function addChild(
387387
/* @var $resource Bundle */
388388
$resource = $this->bundleFactory->create();
389389
$selections = $resource->getSelectionsData($product->getData($linkField));
390-
return $this->processLinkedProduct($linkedProduct, $selections, $optionId, $product, $linkField, $resource);
390+
return $this->processLinkedProduct(
391+
$linkedProduct,
392+
$selections,
393+
(int)$optionId,
394+
$product,
395+
$linkField,
396+
$resource
397+
);
391398
}
392399

393400
/**

0 commit comments

Comments
 (0)