Skip to content

Commit b180cdb

Browse files
ENGCOM-3585: [Forwardport] Issue #19205 Fixed: Bundle Product Option with input type is checkbox and add to cart with 3 values only 2 values added to cart. #19437
- Merge Pull Request #19437 from maheshWebkul721/magento2:2.3-develop-PR-port-19260 - Merged commits: 1. 4bf63da 2. 98ae6ae
2 parents 076ec45 + 98ae6ae commit b180cdb

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
@@ -823,11 +823,11 @@ private function recursiveIntval(array $array)
823823
private function multiToFlatArray(array $array)
824824
{
825825
$flatArray = [];
826-
foreach ($array as $key => $value) {
826+
foreach ($array as $value) {
827827
if (is_array($value)) {
828828
$flatArray = array_merge($flatArray, $this->multiToFlatArray($value));
829829
} else {
830-
$flatArray[$key] = $value;
830+
$flatArray[] = $value;
831831
}
832832
}
833833

0 commit comments

Comments
 (0)