[-] FO : fixed tax rules cache

This commit is contained in:
Damien Metzger
2013-11-20 16:49:48 +01:00
parent 4cc99ed9b6
commit 63f2082da3
+2 -2
View File
@@ -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];
}
}