Correction mauvaise gestion du DELETE
This commit is contained in:
parent
487a76bafe
commit
70d1421f1c
@ -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 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user