Skip to content

Commit 8bdae5d

Browse files
Merge remote-tracking branch '39290/lewisvoncken-patch-1' into comprs_nov
2 parents afb0b4e + 6cc47a2 commit 8bdae5d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/Magento/SalesRule/Model/Validator.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2013 Adobe
4+
* All Rights Reserved.
55
*/
66

77
namespace Magento\SalesRule\Model;
@@ -745,8 +745,9 @@ public function sortItemsByPriority($items, Address $address = null)
745745
$itemsSorted = [];
746746
/** @var $rule Rule */
747747
foreach ($this->getRules($address) as $rule) {
748+
$actions = $rule->getActions();
748749
foreach ($items as $itemKey => $itemValue) {
749-
if ($rule->getActions()->validate($itemValue)) {
750+
if ($actions->validate($itemValue)) {
750751
unset($items[$itemKey]);
751752
$itemsSorted[] = $itemValue;
752753
}

0 commit comments

Comments
 (0)