diff --git a/htdocs/product/fiche.php3 b/htdocs/product/fiche.php3 index 553c9a9c927..39c6903e880 100644 --- a/htdocs/product/fiche.php3 +++ b/htdocs/product/fiche.php3 @@ -26,6 +26,7 @@ require("../propal.class.php3"); llxHeader(); $db = new Db(); +$mesg = ''; if ($action == 'add') { @@ -49,10 +50,11 @@ if ($action == 'addinpropal') $propal->insert_product($id, $HTTP_POST_VARS["qty"]); $action = ''; + $mesg = 'Produit ajouté à la proposition '.$propal->ref; } -if ($action == 'update') +if ($action == 'update' && $cancel <> 'Annuler') { $product = new Product($db); @@ -64,6 +66,7 @@ if ($action == 'update') $product->update($id, $user); $action = ''; + $mesg = 'Fiche mise à jour'; } /* * @@ -71,7 +74,6 @@ if ($action == 'update') */ if ($action == 'create') { - print "