From a8cd454883a13405700a8f5ee16eab3c6e3574c0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Aug 2004 17:06:59 +0000 Subject: [PATCH] Fix: register_globals=off --- htdocs/fichinter/fiche.php | 13 +++++++------ htdocs/fichinter/index.php | 2 ++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index b99f92e9140..9a70d03c6a2 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -97,6 +97,7 @@ if ($_POST["action"] == 'update') $fichinter->ref = $_POST["ref"]; $fichinter->update($_POST["id"]); + $_GET["id"]=$_POST["id"]; // Force raffraichissement sur fiche venant d'etre créée } /* @@ -223,10 +224,9 @@ if ($_GET["action"] == 'create') $i++; } $db->free(); - } else { - dolibarr_print_error(); } print ''; + if ($numprojet==0) { print 'Cette société n\'a pas de projet. '; print 'Créer un projet'; @@ -272,8 +272,11 @@ if ($_GET["action"] == 'edit') print_titre("Mettre à jour Fiche d'intervention"); - print "
"; - + print ""; + + print ""; + print ""; + print ''; print ""; - print ""; - print ''; print ''; diff --git a/htdocs/fichinter/index.php b/htdocs/fichinter/index.php index b390bbb9314..b6527ee4dd3 100644 --- a/htdocs/fichinter/index.php +++ b/htdocs/fichinter/index.php @@ -34,6 +34,8 @@ llxHeader(); * Liste * */ +$sortorder=$_GET["sortorder"]?$_GET["sortorder"]:$_POST["sortorder"]; +$sortfield=$_GET["sortfield"]?$_GET["sortfield"]:$_POST["sortfield"]; if ($sortorder == "") {
".$langs->trans("Date").""; /* @@ -283,8 +286,6 @@ if ($_GET["action"] == 'edit') print "
Numéro'.$fichinter->ref.'
Durée (en jours)