Skip to content

Commit

Permalink
Fix: delete bank account
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 1, 2014
1 parent a5a7fb4 commit 07cf095
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions htdocs/compta/bank/bankid_fr.php
Expand Up @@ -35,6 +35,7 @@

$action=GETPOST('action');
$id=GETPOST('id');
$ref=GETPOST('ref');

// Security check
if (isset($_GET["id"]) || isset($_GET["ref"]))
Expand Down Expand Up @@ -88,8 +89,9 @@
if ($action == 'confirm_delete' && $_POST["confirm"] == "yes" && $user->rights->banque->configurer)
{
// Modification
$account = new Account($db, $_GET["id"]);
$account->delete($_GET["id"]);
$account = new Account($db);
$account->fetch($id);
$account->delete();

header("Location: ".DOL_URL_ROOT."/compta/bank/index.php");
exit;
Expand Down

0 comments on commit 07cf095

Please sign in to comment.