Fix: Go back to tab agenda after creating an event

This commit is contained in:
Laurent Destailleur 2011-03-27 01:20:10 +00:00
parent c4d4bfd922
commit ed22103ab3

View File

@ -68,7 +68,7 @@ if ($_POST["action"] == 'add_action')
if (! empty($_POST["backtopage"])) $backtopage=$_POST["backtopage"];
if (! $backtopage)
{
if ($socid > 0) $backtopage = DOL_URL_ROOT.'/comm/fiche.php?socid='.$socid;
if ($socid > 0) $backtopage = DOL_URL_ROOT.'/societe/agenda.php?socid='.$socid;
else $backtopage=DOL_URL_ROOT.'/comm/action/index.php';
}