From 63e9bd35f26a63de6173d2d8990b6b2c81a45ef0 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 13 Feb 2006 16:42:11 +0000 Subject: [PATCH] =?UTF-8?q?bugfix=20:=20les=20descriptions=20produits=20da?= =?UTF-8?q?ns=20propal=20n'=E9tait=20pas=20r=E9cup=E9r=E9=20dans=20les=20c?= =?UTF-8?q?ommandes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 07d2180a989..1f2bd1eb7a6 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -339,15 +339,20 @@ class Commande } $sql = 'INSERT INTO '.MAIN_DB_PREFIX.'commandedet (fk_commande, fk_product, qty, price, tva_tx, label, description, remise_percent, subprice) VALUES '; + $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','".price2num($price)."','".$p_tva_tx."','".addslashes($p_desc)."','".addslashes($p_product_desc)."', '$remise_percent', '$subprice') ; "; + // Bugfix + /* if ($conf->global->CHANGE_PROD_DESC) { $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','".price2num($price)."','".$p_tva_tx."','".addslashes($p_desc)."','".addslashes($p_product_desc)."', '$remise_percent', '$subprice') ; "; } else { - $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','".price2num($price)."','".$p_tva_tx."','".addslashes($p_desc)."','".addslashes($p_desc)."', '$remise_percent', '$subprice') ; "; + $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','".price2num($price)."','".$p_tva_tx."','".addslashes($p_desc)."','".addslashes($p_product_desc)."', '$remise_percent', '$subprice') ; "; } + */ + if ($this->db->query($sql) ) {