// fix bug hook in AdminAttributesGroupsController (PSFV-94)
This commit is contained in:
1 parent
4fbb25168e
commit
53adff24eb
1 file changed
+6
-3
@@ -434,12 +434,12 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
if (!Combination::isFeatureActive())
|
if (!Combination::isFeatureActive())
|
||||||
return;
|
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 it's an attribute, load object Attribute()
|
||||||
if (Tools::getValue('id_attribute') || Tools::isSubmit('deleteattribute') || Tools::isSubmit('submitAddattribute'))
|
if (Tools::getValue('id_attribute') || Tools::isSubmit('deleteattribute') || Tools::isSubmit('submitAddattribute'))
|
||||||
{
|
{
|
||||||
|
/* Hook */
|
||||||
|
Hook::exec('actionObjectAttributeAddBefore');
|
||||||
|
|
||||||
// Override var of Controller
|
// Override var of Controller
|
||||||
$this->table = 'attribute';
|
$this->table = 'attribute';
|
||||||
$this->className = 'Attribute';
|
$this->className = 'Attribute';
|
||||||
@@ -485,6 +485,9 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* Hook */
|
||||||
|
Hook::exec('actionObjectAttributeGroupAddBefore');
|
||||||
|
|
||||||
if (Tools::getValue('submitDel'.$this->table))
|
if (Tools::getValue('submitDel'.$this->table))
|
||||||
{
|
{
|
||||||
if ($this->tabAccess['delete'] === '1')
|
if ($this->tabAccess['delete'] === '1')
|
||||||
|
|||||||
Reference in new issue
Block a user