From 95f9de6ab4ebbcc04a13730744e62f0041368c2c Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 19 Feb 2012 18:00:47 +0100 Subject: [PATCH] Fix: missing rowid --- htdocs/compta/facture.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 80803d6d714..54e03b64127 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -141,8 +141,7 @@ if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->facture-> { if ($user->rights->facture->supprimer) { - $result = $object->fetch($id); - $result = $object->delete(); + $result = $object->delete($id); if ($result > 0) { Header('Location: '.$_SERVER["PHP_SELF"]);