[-] BO : #PSTEST-777 : Reset form when action is : save and stay
This commit is contained in:
1 parent
139d6947d2
commit
c061530a9d
1 file changed
+1
-6
@@ -373,12 +373,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
|
|||||||
parent::processAdd($token);
|
parent::processAdd($token);
|
||||||
|
|
||||||
if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
|
if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors))
|
||||||
{
|
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$token;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user