[*] BO : when a group is created, every category are linked to this group

This commit is contained in:
vChabot
2011-11-03 17:14:16 +00:00
parent 2ca8f6ec7d
commit 03d53a3e55
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ class GroupCore extends ObjectModel
Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'category_group` WHERE `id_group` = '.(int)$this->id);
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);
$this->truncateModulesRestrictions($this->id);
// Refresh cache of feature detachable
Configuration::updateGlobalValue('PS_GROUP_FEATURE_ACTIVE', self::isCurrentlyUsed());