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