Skip to content
Snippets Groups Projects
Commit 70d1421f authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Correction mauvaise gestion du DELETE

parent 487a76ba
No related branches found
No related tags found
No related merge requests found
...@@ -74,14 +74,13 @@ if ($_POST["action"] == 'add') ...@@ -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 ;
} }
/* /*
* *
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment