Correction mauvaise gestion du DELETE

This commit is contained in:
Rodolphe Quiedeville 2005-07-30 09:32:35 +00:00
parent 487a76bafe
commit 70d1421f1c

View File

@ -74,14 +74,13 @@ if ($_POST["action"] == 'add')
} }
// Suppression // Suppression
if ($_POST["action"] == 'delete' && $user->rights->facture->supprimer) if ($_REQUEST["action"] == 'delete' && $user->rights->facture->supprimer)
{ {
$fac = new FactureRec($db); $fac = new FactureRec($db);
$fac->delete($facid); $fac->delete($_REQUEST["facid"]);
$facid = 0 ; $facid = 0 ;
} }
/* /*
* *
*/ */