// fix bug hook in AdminAttributesGroupsController (PSFV-94)

This commit is contained in:
lLefevre
2011-11-02 14:26:21 +00:00
parent 4fbb25168e
commit 53adff24eb
@@ -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')