Skip to content

Commit 57a07c8

Browse files
committed
ACP2E-2909: dynamic-rows.js:658 Uncaught TypeError: dataRecord.slice while editing bundle products
- Fixed the issue as per the QA comments.
1 parent 21fe391 commit 57a07c8

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Bundle/Controller/Adminhtml/Product/Initialization/Helper/Plugin

1 file changed

+3
-1
lines changed

app/code/Magento/Bundle/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Bundle.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ protected function processBundleOptionsData(\Magento\Catalog\Model\Product $prod
152152
if (!empty($linkData['selection_id'])) {
153153
$linkData['id'] = $linkData['selection_id'];
154154
}
155-
$links[] = $this->buildLink($product, $linkData);
155+
if (!empty($linkData['product_id'])) {
156+
$links[] = $this->buildLink($product, $linkData);
157+
}
156158
}
157159
$option->setProductLinks($links);
158160
$options[] = $option;

0 commit comments

Comments
 (0)