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)
|
if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes" && $user->rights->banque->configurer)
|
||||||
{
|
{
|
||||||
// Modification
|
// Delete
|
||||||
$account = new Account($db, $_GET["id"]);
|
$account = new Account($db);
|
||||||
$account->delete($_GET["id"]);
|
$account->fetch($_GET["id"]);
|
||||||
|
$account->delete();
|
||||||
|
|
||||||
header("Location: ".DOL_URL_ROOT."/compta/bank/index.php");
|
header("Location: ".DOL_URL_ROOT."/compta/bank/index.php");
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user