From 63f2082da3465774525bd9bc7841f382c262b988 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Wed, 20 Nov 2013 16:49:48 +0100 Subject: [PATCH] [-] FO : fixed tax rules cache --- classes/tax/TaxRulesTaxManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/tax/TaxRulesTaxManager.php b/classes/tax/TaxRulesTaxManager.php index 99cbea94d..ba6b07456 100644 --- a/classes/tax/TaxRulesTaxManager.php +++ b/classes/tax/TaxRulesTaxManager.php @@ -111,10 +111,10 @@ class TaxRulesTaxManagerCore implements TaxManagerInterface break; } - self::$cache_tax_calculator[$postcode.'-'.$this->type] = new TaxCalculator($taxes, $behavior); + self::$cache_tax_calculator[(int)$this->address->id_country.'-'.$postcode.'-'.$this->type] = new TaxCalculator($taxes, $behavior); } - return self::$cache_tax_calculator[$postcode.'-'.$this->type]; + return self::$cache_tax_calculator[(int)$this->address->id_country.'-'.$postcode.'-'.$this->type]; } }