Skip to content

Commit 6a7ae23

Browse files
ENGCOM-3488: Issue #19205 Fixed: Bundle Product Option with input type is checkbox and add to cart with 3 values only 2 values added to cart. #19260
- Merge Pull Request #19260 from maheshWebkul721/magento2:bundle-product-addto-cart - Merged commits: 1. aa379ea 2. 1a321d2
2 parents d14510f + 1a321d2 commit 6a7ae23

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Bundle/Model/Product

1 file changed

+2
-2
lines changed

app/code/Magento/Bundle/Model/Product/Type.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,11 +818,11 @@ private function recursiveIntval(array $array)
818818
private function multiToFlatArray(array $array)
819819
{
820820
$flatArray = [];
821-
foreach ($array as $key => $value) {
821+
foreach ($array as $value) {
822822
if (is_array($value)) {
823823
$flatArray = array_merge($flatArray, $this->multiToFlatArray($value));
824824
} else {
825-
$flatArray[$key] = $value;
825+
$flatArray[] = $value;
826826
}
827827
}
828828

0 commit comments

Comments
 (0)