From 8aaeb3a66d0040ce976331cf5ef455c0c334e528 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Tue, 13 Nov 2012 15:52:31 +0000 Subject: [PATCH] [-] FO : wrong cache ID fixed #PSCFV-5537 --- classes/CartRule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/CartRule.php b/classes/CartRule.php index 24118ac50..a8a7419b5 100644 --- a/classes/CartRule.php +++ b/classes/CartRule.php @@ -734,9 +734,9 @@ class CartRuleCore extends ObjectModel $reduction_value = 0; - $cache_id = 'getContextualValue_'.(int)$use_tax.'_'.(int)$context->cart->id.'_'.(int)$filter; + $cache_id = 'getContextualValue_'.(int)$this->id.'_'.(int)$use_tax.'_'.(int)$context->cart->id.'_'.(int)$filter; foreach ($package_products as $product) - $cache_id .= (int)$product['id_product'].'_'.(int)$product['id_product_attribute']; + $cache_id .= '_'.(int)$product['id_product'].'_'.(int)$product['id_product_attribute']; if (Cache::isStored($cache_id)) return Cache::retrieve($cache_id);