Skip to content

Commit

Permalink
#26622 - Change to check for both parentItemId and parentItem
Browse files Browse the repository at this point in the history
  • Loading branch information
aligent-lturner committed Feb 4, 2020
1 parent e943bda commit 199afbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/SalesRule/Model/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public function initTotals($items, Address $address)

foreach ($items as $item) {
//Skipping child items to avoid double calculations
if ($item->getParentItem()) {
if ($item->getParentItemId() || $item->getParentItem()) {
continue;
}
if (!$rule->getActions()->validate($item)) {
Expand Down

0 comments on commit 199afbf

Please sign in to comment.