[*] BO : #PSTEST-624 - On creating group, automaticaly assign the new groups to all carriers

This commit is contained in:
mDeflotte
2012-02-03 08:59:46 +00:00
parent b0db255ffd
commit 5e4b6e0e35
2 changed files with 39 additions and 0 deletions
+2
View File
@@ -141,6 +141,8 @@ class GroupCore extends ObjectModel
if (parent::add($autodate, $null_values))
{
Category::setNewGroupForHome((int)$this->id);
Carrier::assignGroupToAllCarriers((int)$this->id);
// Set cache of feature detachable to true
Configuration::updateGlobalValue('PS_GROUP_FEATURE_ACTIVE', '1');