From b3ad303fc2443b305c11461b0a18e57462db9809 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 19 Feb 2006 15:56:54 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20le=20produit=20n'=E9tait=20pas=20r=E9cup?= =?UTF-8?q?=E9r=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/fiche.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 2f746e3005e..9a88dcdcece 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -223,6 +223,9 @@ if ($_POST["action"] == 'addinpropal') */ if ($_POST["action"] == 'addincommande') { + $product = new Product($db); + $result = $product->fetch($_GET["id"]); + $commande = New Commande($db); $commande->fetch($_POST["commandeid"]); @@ -233,10 +236,6 @@ if ($_POST["action"] == 'addincommande') $product->tva_tx, $product->id, $_POST["remise_percent"]); - if ( $result < 0) - { - $mesg = $langs->trans("ErrorUnknown").": $result"; - } Header("Location: ../commande/fiche.php?id=".$commande->id); exit;