Fix: Delete bank accounts
This commit is contained in:
parent
9ad4f06e29
commit
e8c7a37772
@ -174,9 +174,10 @@ if ($_POST["action"] == 'update' && ! $_POST["cancel"])
|
||||
|
||||
if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes" && $user->rights->banque->configurer)
|
||||
{
|
||||
// Modification
|
||||
$account = new Account($db, $_GET["id"]);
|
||||
$account->delete($_GET["id"]);
|
||||
// Delete
|
||||
$account = new Account($db);
|
||||
$account->fetch($_GET["id"]);
|
||||
$account->delete();
|
||||
|
||||
header("Location: ".DOL_URL_ROOT."/compta/bank/index.php");
|
||||
exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user