From ed22103ab3987944b59013396ca13bf23b7c12e7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 27 Mar 2011 01:20:10 +0000 Subject: [PATCH] Fix: Go back to tab agenda after creating an event --- htdocs/comm/action/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index b727d74686e..cbc1e50053b 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -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'; }