[-] BO : #PSTEST-400 - Fixed problem with adding attribute

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12414 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-01-13 16:01:30 +00:00
parent 32ab792e18
commit f98e8181d5
2 changed files with 15 additions and 5 deletions
@@ -409,7 +409,7 @@ class AdminFeaturesControllerCore extends AdminController
if (!$feature_value->update())
$this->errors[] = Tools::displayError('An error has occured: Can\'t save the current feature value');
else if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
Tools::redirectAdmin(self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$this->token);
Tools::redirectAdmin(self::$currentIndex.'&'.$this->identifier.'=&id_feature='.(int)Tools::getValue('id_feature').'&conf=3&update'.$this->table.'&token='.$this->token);
else
Tools::redirectAdmin(self::$currentIndex.'&conf=4&token='.$this->token);
}
@@ -419,7 +419,7 @@ class AdminFeaturesControllerCore extends AdminController
if (!$feature_value->add())
$this->errors[] = Tools::displayError('An error has occured: Can\'t save the current feature value');
else if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
Tools::redirectAdmin(self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$this->token);
Tools::redirectAdmin(self::$currentIndex.'&'.$this->identifier.'=&id_feature='.(int)Tools::getValue('id_feature').'&conf=3&update'.$this->table.'&token='.$this->token);
else
Tools::redirectAdmin(self::$currentIndex.'&conf=4&token='.$this->token);
}