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 = '';