From ebad3fbcae8f5d8f96f061feb507fc2ccd365d71 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 8 Nov 2007 15:58:50 +0000 Subject: [PATCH] Fix: lors de la suppression d'un tiers on renvoi vers la page societe.php avec la confirmation --- htdocs/soc.php | 18 ++++++++---------- htdocs/societe.php | 2 ++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index bf1c2ebfc26..6ae0eea436f 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -201,17 +201,15 @@ if ($_REQUEST["action"] == 'confirm_delete' && $_REQUEST["confirm"] == 'yes' && $result = $soc->delete($socid); if ($result == 0) - { - llxHeader(); - print '
'.$langs->trans("CompanyDeleted",$soc->nom).'
'; - llxFooter(); - exit ; - } + { + Header("Location: ".DOL_URL_ROOT."/societe.php?delsoc=".$soc->nom.""); + exit; + } else - { - $reload = 0; - $_GET["action"]=''; - } + { + $reload = 0; + $_GET["action"]=''; + } } /** diff --git a/htdocs/societe.php b/htdocs/societe.php index 07cbce0fea2..8884a791e07 100644 --- a/htdocs/societe.php +++ b/htdocs/societe.php @@ -113,6 +113,8 @@ if (isset($_POST["button_removefilter_x"])) $search_ville=""; } +// Affiche la confirmation de suppression d'un tiers +if ($_GET['delsoc']) print '
'.$langs->trans("CompanyDeleted",$_GET['delsoc']).'

'; /* * Mode Liste