mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 00:53:00 +01:00
Correction mauvaise gestion du DELETE
This commit is contained in:
@@ -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 ;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user