diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 84d68d480b9..a1a16818c97 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -141,7 +141,7 @@ if ($_POST["action"] == 'updateligne' && $user->rights->commande->creer) } } -if ($action == 'deleteline' && $user->rights->commande->creer) +if ($_GET["action"] == 'deleteline' && $user->rights->commande->creer) { $commande = new Commande($db); $commande->fetch($_GET["id"]);