From 9d1b6ece7b3ff782cd0662289fb9314e132909f9 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 11 Oct 2003 21:03:29 +0000 Subject: [PATCH] Modif message de retour de l'ajout d'un fournisseur --- htdocs/product/fiche.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 1581151c771..80ffddeaf2a 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -96,11 +96,15 @@ if ($HTTP_POST_VARS["action"] == 'add_fourn' && $cancel <> 'Annuler') $product = new Product($db); if( $product->fetch($id) ) { - if ($product->add_fournisseur($user, $HTTP_POST_VARS["id_fourn"], $HTTP_POST_VARS["ref_fourn"])) + if ($product->add_fournisseur($user, $HTTP_POST_VARS["id_fourn"], $HTTP_POST_VARS["ref_fourn"]) > 0) { $action = ''; $mesg = 'Founisseur ajouté'; } + else + { + $action = ''; + } } }