From 6699733ec65e6269a16c11e454ef9151db3009b1 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Fri, 13 Jan 2012 13:47:53 +0000 Subject: [PATCH] [-] FO : #PSTEST-400 - Fixed problem with registering attribute value git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12407 b9a71923-0436-4b27-9f14-aed3839534dd --- 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 2e04ca5d1..1b4ec706f 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -515,8 +515,8 @@ class AdminAttributesGroupsControllerCore extends AdminController else $this->identifier = 'id_attribute_group'; - if ((int)Tools::getValue('id_attribute') <= 0 && $this->display == 'add' - || (int)Tools::getValue('id_attribute_group') <= 0 && $this->display != 'add') + if ((int)Tools::getValue('id_attribute_group') <= 0 && $this->display == 'add' + || (int)Tools::getValue('id_attribute') <= 0 && $this->display != 'add') return $this->processAdd($token); else return $this->processUpdate($token);