From 677f758c0d7522610af6457c68529e50dd164bb9 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 2 Nov 2011 14:26:21 +0000 Subject: [PATCH] // fix bug hook in AdminAttributesGroupsController (PSFV-94) git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9799 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminAttributesGroupsController.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index 07b5738ea..95efbf19c 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -434,12 +434,12 @@ class AdminAttributesGroupsControllerCore extends AdminController if (!Combination::isFeatureActive()) return; - Module::hookExec('postProcessAttributeGroup', - array('errors' => &$this->_errors)); // send _errors as reference to allow postProcessAttributeGroup to stop saving process - // If it's an attribute, load object Attribute() if (Tools::getValue('id_attribute') || Tools::isSubmit('deleteattribute') || Tools::isSubmit('submitAddattribute')) { + /* Hook */ + Hook::exec('actionObjectAttributeAddBefore'); + // Override var of Controller $this->table = 'attribute'; $this->className = 'Attribute'; @@ -485,6 +485,9 @@ class AdminAttributesGroupsControllerCore extends AdminController } else { + /* Hook */ + Hook::exec('actionObjectAttributeGroupAddBefore'); + if (Tools::getValue('submitDel'.$this->table)) { if ($this->tabAccess['delete'] === '1')