// Update Accounting for the return display html

This commit is contained in:
vSchoener committed 2011-11-15 17:11:53 +00:00
1 parent 63e900aeac
commit 84eb41f7a8
4 files changed
+19 -13

No files matched your search

@@ -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);
}
}