Fix: lors de la suppression d'un tiers on renvoi vers la page societe.php avec la confirmation
This commit is contained in:
parent
3e6b55fdb3
commit
ebad3fbcae
@ -201,17 +201,15 @@ if ($_REQUEST["action"] == 'confirm_delete' && $_REQUEST["confirm"] == 'yes' &&
|
||||
$result = $soc->delete($socid);
|
||||
|
||||
if ($result == 0)
|
||||
{
|
||||
llxHeader();
|
||||
print '<div class="ok">'.$langs->trans("CompanyDeleted",$soc->nom).'</div>';
|
||||
llxFooter();
|
||||
exit ;
|
||||
}
|
||||
{
|
||||
Header("Location: ".DOL_URL_ROOT."/societe.php?delsoc=".$soc->nom."");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$reload = 0;
|
||||
$_GET["action"]='';
|
||||
}
|
||||
{
|
||||
$reload = 0;
|
||||
$_GET["action"]='';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -113,6 +113,8 @@ if (isset($_POST["button_removefilter_x"]))
|
||||
$search_ville="";
|
||||
}
|
||||
|
||||
// Affiche la confirmation de suppression d'un tiers
|
||||
if ($_GET['delsoc']) print '<div class="warning">'.$langs->trans("CompanyDeleted",$_GET['delsoc']).'</div><br>';
|
||||
|
||||
/*
|
||||
* Mode Liste
|
||||
|
||||
Loading…
Reference in New Issue
Block a user