Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save devzorg/2e4eac87e6d41b937a39dab51d0e97f1 to your computer and use it in GitHub Desktop.
Save devzorg/2e4eac87e6d41b937a39dab51d0e97f1 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