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 "