Last active
December 15, 2017 09:11
-
-
Save edannenberg/9662d9f41fc696611576820543792e73 to your computer and use it in GitHub Desktop.
PATCH_SUPEE-4814 - raw diff of https://gist.github.com/piotrekkaminski/54529dadb0bc01a62a2d - tested on CE 1.9.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -rupN src_org/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php src_patched/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php | |
--- src_org/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php 2016-02-17 19:27:54.000000000 +0100 | |
+++ src_patched/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php 2017-05-04 16:36:44.349301447 +0200 | |
@@ -114,7 +114,7 @@ class Mage_SalesRule_Model_Rule_Conditio | |
$attr = $this->getAttribute(); | |
$total = 0; | |
foreach ($object->getQuote()->getAllVisibleItems() as $item) { | |
- if (parent::validate($item)) { | |
+ if (Mage_Rule_Model_Condition_Combine::validate($item)) { | |
$total += $item->getData($attr); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment