[-] BO : fixed bug #PSCFV-9178 - is_color_group is not inserted correctly
This commit is contained in:
@@ -70,6 +70,11 @@ class AttributeGroupCore extends ObjectModel
|
|||||||
|
|
||||||
public function add($autodate = true, $nullValues = false)
|
public function add($autodate = true, $nullValues = false)
|
||||||
{
|
{
|
||||||
|
if ($this->group_type == 'color')
|
||||||
|
$this->is_color_group = 1;
|
||||||
|
else
|
||||||
|
$this->is_color_group = 0;
|
||||||
|
|
||||||
if ($this->position <= 0)
|
if ($this->position <= 0)
|
||||||
$this->position = AttributeGroup::getHigherPosition() + 1;
|
$this->position = AttributeGroup::getHigherPosition() + 1;
|
||||||
|
|
||||||
@@ -80,6 +85,11 @@ class AttributeGroupCore extends ObjectModel
|
|||||||
|
|
||||||
public function update($nullValues = false)
|
public function update($nullValues = false)
|
||||||
{
|
{
|
||||||
|
if ($this->group_type == 'color')
|
||||||
|
$this->is_color_group = 1;
|
||||||
|
else
|
||||||
|
$this->is_color_group = 0;
|
||||||
|
|
||||||
$return = parent::update($nullValues);
|
$return = parent::update($nullValues);
|
||||||
Hook::exec('actionAttributeGroupSave', array('id_attribute_group' => $this->id));
|
Hook::exec('actionAttributeGroupSave', array('id_attribute_group' => $this->id));
|
||||||
return $return;
|
return $return;
|
||||||
|
|||||||
Reference in New Issue
Block a user