// fix issue on ajax querie on adding product

// clean code

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11451 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2011-12-21 09:23:31 +00:00
parent a6f2e0f638
commit 083f1baf61
4 changed files with 33 additions and 28 deletions
+3
View File
@@ -77,6 +77,7 @@ class SpecificPriceCore extends ObjectModel
{
// Flush cache when we adding a new specific price
self::$_specificPriceCache = array();
Product::flushPriceCache();
// Set cache of feature detachable to true
Configuration::updateGlobalValue('PS_SPECIFIC_PRICE_FEATURE_ACTIVE', '1');
return true;
@@ -90,6 +91,7 @@ class SpecificPriceCore extends ObjectModel
{
// Flush cache when we updating a new specific price
self::$_specificPriceCache = array();
Product::flushPriceCache();
}
}
@@ -99,6 +101,7 @@ class SpecificPriceCore extends ObjectModel
{
// Flush cache when we deletind a new specific price
self::$_specificPriceCache = array();
Product::flushPriceCache();
// Refresh cache of feature detachable
Configuration::updateGlobalValue('PS_SPECIFIC_PRICE_FEATURE_ACTIVE', self::isCurrentlyUsed($this->def['table']));
return true;