[-] BO : fix bug #PSFV-535 - AdminAddress : Redirection if errors on add form
This commit is contained in:
1 parent
5b6fbacde2
commit
ef7e4642c4
1 file changed
+4
@@ -359,6 +359,9 @@ class AdminAddressesControllerCore extends AdminController
|
|||||||
|
|
||||||
if (empty($this->errors))
|
if (empty($this->errors))
|
||||||
parent::processSave($token);
|
parent::processSave($token);
|
||||||
|
else
|
||||||
|
// if we have errors, we stay on the form instead of going back to the list
|
||||||
|
$this->display = 'edit';
|
||||||
|
|
||||||
/* Reassignation of the order's new (invoice or delivery) address */
|
/* Reassignation of the order's new (invoice or delivery) address */
|
||||||
$address_type = ((int)Tools::getValue('address_type') == 2 ? 'invoice' : ((int)Tools::getValue('address_type') == 1 ? 'delivery' : ''));
|
$address_type = ((int)Tools::getValue('address_type') == 2 ? 'invoice' : ((int)Tools::getValue('address_type') == 1 ? 'delivery' : ''));
|
||||||
@@ -375,6 +378,7 @@ class AdminAddressesControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
if (Tools::getValue('submitFormAjax'))
|
if (Tools::getValue('submitFormAjax'))
|
||||||
$this->redirect_after = false;
|
$this->redirect_after = false;
|
||||||
|
|
||||||
return parent::processAdd($token);
|
return parent::processAdd($token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user