diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php index 95e6f414b11e2860517e9ed93f7e66d8f5992f12..857cb6b7eba5f9148a161067e066312de79057f9 100644 --- a/htdocs/compta/facture/fiche-rec.php +++ b/htdocs/compta/facture/fiche-rec.php @@ -74,14 +74,13 @@ if ($_POST["action"] == 'add') } // Suppression -if ($_POST["action"] == 'delete' && $user->rights->facture->supprimer) +if ($_REQUEST["action"] == 'delete' && $user->rights->facture->supprimer) { - $fac = new FactureRec($db); - $fac->delete($facid); - $facid = 0 ; + $fac = new FactureRec($db); + $fac->delete($_REQUEST["facid"]); + $facid = 0 ; } - /* * */