[-] BO : #PSFV-498 - On editing attribute (group) the attribute is dupplicated

This commit is contained in:
mDeflotte
2012-02-13 17:14:45 +00:00
parent f8d5e85eac
commit 46019774fa
@@ -529,8 +529,8 @@ class AdminAttributesGroupsControllerCore extends AdminController
else
$this->identifier = 'id_attribute';
if ((int)Tools::getValue('id_attribute_group') <= 0 && $this->display == 'add'
|| (int)Tools::getValue('id_attribute') <= 0 && $this->display != 'add')
if ((int)Tools::getValue('id_attribute_group') >= 0 && ($this->display == 'add' || $this->display == 'editAttributes')
|| (int)Tools::getValue('id_attribute_group') == 0 && $this->display != 'add')
return $this->processAdd($token);
else
return $this->processUpdate($token);