public function add($autodate = true, $null_values = false) { 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'); return true; } return false; }
public function add($autodate = true, $nullValues = false) { return parent::add() && Category::setNewGroupForHome(intval($this->id)); }