diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 41521d76c68..d27049360fb 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -388,8 +388,6 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) { $product = new Product($db); - if ($mesg) print "$mesg\n"; - if ($_error == 1) { $product = $e_product; @@ -397,6 +395,8 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) llxHeader("","",$langs->trans("CardProduct".$product->type)); + if ($mesg) print "$mesg\n"; + print '