From 5b040dd4e9313fe5770794fea9d0a690dd265f9d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 Jul 2009 00:11:33 +0000 Subject: [PATCH] Use new confirmation box --- htdocs/projet/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index d091207316d..a2b8ba04e7d 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -112,7 +112,7 @@ if ($_POST["action"] == 'update' && $user->rights->projet->creer) } } -if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes" && $user->rights->projet->supprimer) +if ($_REQUEST["action"] == 'confirm_delete' && $_REQUEST["confirm"] == "yes" && $user->rights->projet->supprimer) { $projet = new Project($db); $projet->id = $_GET["id"]; @@ -201,7 +201,7 @@ else if ($_GET["action"] == 'delete') { - $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?id=".$_GET["id"],$langs->trans("DeleteAProject"),$langs->trans("ConfirmDeleteAProject"),"confirm_delete"); + $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?id=".$_GET["id"],$langs->trans("DeleteAProject"),$langs->trans("ConfirmDeleteAProject"),"confirm_delete",'','',1); if ($ret == 'html') print '
'; }