// Retro compatibility for Discount
This commit is contained in:
1 parent
e7c0b0bdf9
commit
7f830c2f4e
6 files changed
+215
-481
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user