From 080e6ffd4bbd044067fa5621cb3a4323c5ae4065 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 18 Aug 2004 15:04:30 +0000 Subject: [PATCH] bugfix --- htdocs/product/stock/fiche.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stock/fiche.php b/htdocs/product/stock/fiche.php index da9c63e97df..263f59d4369 100644 --- a/htdocs/product/stock/fiche.php +++ b/htdocs/product/stock/fiche.php @@ -26,7 +26,7 @@ require("./pre.inc.php"); $mesg = ''; -llxHeader("","","Fiche entrepôt"); + if ($_POST["action"] == 'add') { @@ -38,7 +38,7 @@ if ($_POST["action"] == 'add') $entrepot->statut = $_POST["statut"]; $id = $entrepot->create($user); - $action = ''; + Header("Location: fiche.php?id=$id"); } if ($_POST["action"] == 'update' && $_POST["cancel"] <> 'Annuler') @@ -69,6 +69,8 @@ if ($_POST["action"] == 'update' && $_POST["cancel"] <> 'Annuler') } +llxHeader("","","Fiche entrepôt"); + if ($cancel == 'Annuler') { $action = '';