Skip to content

Instantly share code, notes, and snippets.

@edannenberg
Last active December 15, 2017 09:11
Show Gist options
  • Save edannenberg/9662d9f41fc696611576820543792e73 to your computer and use it in GitHub Desktop.
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
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