Skip to content

Commit

Permalink
MAGETWO-66746: In case something wrong with underlying products #7045
Browse files Browse the repository at this point in the history
 - Merge Pull Request #7045 from Will-I4M/magento2:patch-2
  • Loading branch information
vrann committed Mar 24, 2017
2 parents 07414c0 + aec7a82 commit 11fcd0f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,11 @@ protected function calculateDynamicBundleAmount($basePriceValue, $bundleProduct,

foreach ($selectionPriceList as $selectionPrice) {
++$i;
$amountList[$i]['amount'] = $selectionPrice->getAmount();
// always honor the quantity given
$amountList[$i]['quantity'] = $selectionPrice->getQuantity();
if ($selectionPrice) {
$amountList[$i]['amount'] = $selectionPrice->getAmount();
// always honor the quantity given
$amountList[$i]['quantity'] = $selectionPrice->getQuantity();
}
}

/** @var Store $store */
Expand Down

0 comments on commit 11fcd0f

Please sign in to comment.