From 5fa10c1ef183290429873c8721cb2d8673488e71 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Thu, 23 Feb 2012 10:06:11 +0000 Subject: [PATCH] [-] BO : #PSTEST-777 : Reset form when action is : save and stay --- controllers/admin/AdminAttributesGroupsController.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index a491a47b5..8541079f1 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -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; } /**