changement de $projet->id = $_POST["id"]; en $projet->id = $_GET["id"];
a la ligne 71 permet d'effacer un projet
This commit is contained in:
parent
472c1e4c2b
commit
9fc22b95d8
@ -68,7 +68,7 @@ if ($_POST["action"] == 'update' && $user->rights->projet->creer)
|
||||
if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == yes)
|
||||
{
|
||||
$projet = new Project($db);
|
||||
$projet->id = $_POST["id"];
|
||||
$projet->id = $_GET["id"];
|
||||
$projet->delete();
|
||||
Header("Location: index.php");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user