// Retro compatibility for Discount

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9789 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2011-11-02 10:47:01 +00:00
parent 9413c697d6
commit 953cb8b872
6 changed files with 215 additions and 481 deletions
-3
View File
@@ -172,7 +172,6 @@ class GroupCore extends ObjectModel
Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'group_reduction` WHERE `id_group` = '.(int)$this->id);
Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'product_group_reduction_cache` WHERE `id_group` = '.(int)$this->id);
$this->truncateRestrictionsModules($this->id);
Discount::deleteByIdGroup((int)$this->id);
// Refresh cache of feature detachable
Configuration::updateGlobalValue('PS_GROUP_FEATURE_ACTIVE', self::isCurrentlyUsed());
@@ -194,8 +193,6 @@ class GroupCore extends ObjectModel
1)
WHERE `id_default_group` = '.(int)$this->id);
Discount::deleteByIdGroup($this->id);
return true;
}
return false;