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);
|
$result = $soc->delete($socid);
|
||||||
|
|
||||||
if ($result == 0)
|
if ($result == 0)
|
||||||
{
|
{
|
||||||
llxHeader();
|
Header("Location: ".DOL_URL_ROOT."/societe.php?delsoc=".$soc->nom."");
|
||||||
print '<div class="ok">'.$langs->trans("CompanyDeleted",$soc->nom).'</div>';
|
exit;
|
||||||
llxFooter();
|
}
|
||||||
exit ;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$reload = 0;
|
$reload = 0;
|
||||||
$_GET["action"]='';
|
$_GET["action"]='';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -113,6 +113,8 @@ if (isset($_POST["button_removefilter_x"]))
|
|||||||
$search_ville="";
|
$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
|
* Mode Liste
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user