// 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:
dMetzger
2012-08-17 07:03:54 +00:00
parent 3f8a46a984
commit 3d2a10f295
9 changed files with 27 additions and 10 deletions
@@ -400,10 +400,12 @@ class AdminFeaturesControllerCore extends AdminController
*/
public function processAdd()
{
parent::processAdd();
$object = parent::processAdd();
if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$this->token;
return $object;
}
/**
@@ -412,10 +414,12 @@ class AdminFeaturesControllerCore extends AdminController
*/
public function processUpdate()
{
parent::processUpdate();
$object = parent::processUpdate();
if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$this->token;
return $object;
}
/**
@@ -442,7 +446,7 @@ class AdminFeaturesControllerCore extends AdminController
if (preg_match('/^name_/Ui', $key))
$_POST[$key] = str_replace ('\n', '', str_replace('\r', '', $value));
}
parent::processSave();
return parent::processSave();
}
/**