// Update Accounting for the return display html
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10145 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -133,12 +133,12 @@ class AdminAccountingManagementControllerCore extends AdminController
|
||||
'num' => $num);
|
||||
|
||||
// Save to the database the account
|
||||
if (count($tab))
|
||||
{
|
||||
Accounting::setAccountNumberByZoneShop($tab);
|
||||
$token = Tools::getValue('token') ? Tools::getValue('token') : $this->token;
|
||||
Tools::redirectAdmin(self::$currentIndex.'&token='.$token);
|
||||
}
|
||||
if (count($tab) && Accounting::setAccountNumberByZoneShop($tab))
|
||||
$this->confirmations[] = $this->l('Account numbers have been updated');
|
||||
else
|
||||
$this->_errors[] = $this->l('Account Numbers could not be updated or added in the database');
|
||||
//$token = Tools::getValue('token') ? Tools::getValue('token') : $this->token;
|
||||
//Tools::redirectAdmin(self::$currentIndex.'&token='.$token);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user