[-] BO : fix bug #PSFV-535 - AdminAddress : Redirection if errors on add form
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13474 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
56f8b70cb9
commit
0753d43376
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