From 46019774fa5706fe5d4425fe158b5aae2ce3c7a8 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Mon, 13 Feb 2012 17:14:45 +0000 Subject: [PATCH] [-] BO : #PSFV-498 - On editing attribute (group) the attribute is dupplicated --- controllers/admin/AdminAttributesGroupsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index 9da1bb0cb..99f687ea1 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -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);