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
  • Loading branch information
vrann authored Mar 31, 2017
2 parents 1d370cd + 11fcd0f commit e4a5d38
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 e4a5d38

Please sign in to comment.