// Clean AdminController methods did not return the appropriate value #PSCFV-3645
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16876 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -386,7 +386,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
||||
*/
|
||||
public function processAdd()
|
||||
{
|
||||
parent::processAdd();
|
||||
$object = parent::processAdd();
|
||||
|
||||
if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
|
||||
{
|
||||
@@ -398,6 +398,8 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
||||
|
||||
if (count($this->errors))
|
||||
$this->setTypeAttribute();
|
||||
|
||||
return $object;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -406,7 +408,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
||||
*/
|
||||
public function processUpdate()
|
||||
{
|
||||
parent::processUpdate();
|
||||
$object = parent::processUpdate();
|
||||
|
||||
if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
|
||||
{
|
||||
@@ -418,6 +420,8 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
||||
|
||||
if (count($this->errors))
|
||||
$this->setTypeAttribute();
|
||||
|
||||
return $object;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user