From 370c6dce6cde20bc29595394191e6af884c2f5ab Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 9 Feb 2004 09:22:21 +0000 Subject: [PATCH] =?UTF-8?q?Gestion=20du=20retour=20apr=E9s=20action=20suiv?= =?UTF-8?q?ant=20prospect=20ou=20client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/action/fiche.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 6f4f1950733..3cfbf516322 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2004 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -118,7 +118,8 @@ if ($HTTP_POST_VARS["action"] == 'add_action') $webcal->add($user, $todo->date, $societe->nom, $libelle); } } - Header("Location: ".DOL_URL_ROOT."/comm/fiche.php?socid=$socid"); + // Header("Location: ".DOL_URL_ROOT."/comm/fiche.php?socid=$socid"); + Header("Location: ".$HTTP_POST_VARS["from"]); } if ($HTTP_POST_VARS["action"] == 'confirm_delete' && $HTTP_POST_VARS["confirm"] == yes) @@ -151,7 +152,7 @@ $html = new Form($db); * */ -if ($action=='create') +if ($_GET["action"] == 'create') { $caction = new CActioncomm($db); @@ -161,12 +162,13 @@ if ($action=='create') $caction->fetch($db, $actionid); $contact = new Contact($db); - $contact->fetch($contactid); + $contact->fetch($_GET["contactid"]); } $societe = new Societe($db); $societe->get_nom($socid); print '
'; + print ''; print ''; print ''."\n"; @@ -174,7 +176,7 @@ if ($action=='create') * Rendez-vous * */ - if ($actionid == 5) + if ($_GET["actionid"] == 5) { print ''."\n";