diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 1abe3f8cfc3..a87b40af118 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -287,7 +287,8 @@ if ($_POST['action'] == 'confirm_delete' && $_POST['confirm'] == 'yes') if ($user->rights->commande->supprimer ) { $commande = new Commande($db); - $commande->id = $_GET['id']; + //$commande->id = $_GET['id']; + $commande->fetch($_GET['id']); $commande->delete(); Header('Location: index.php'); exit;