[-] BO : #PSTEST-777 : Reset form when action is : save and stay

This commit is contained in:
lLefevre
2012-02-23 10:06:11 +00:00
parent a6f2e045ef
commit 5fa10c1ef1
@@ -373,12 +373,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
parent::processAdd($token);
if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
{
if ($this->display == 'add')
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$token;
else
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'='.(int)Tools::getValue($this->identifier).'&conf=3&update'.$this->table.'&token='.$token;
}
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$token;
}
/**