From efb8de01392649d7bdeacf4cc501a88d2e726136 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 11 Feb 2006 17:44:39 +0000 Subject: [PATCH] modification de la description produit --- htdocs/commande/commande.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 43eed91ce5c..99084f76cf5 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -380,7 +380,7 @@ class Commande if ($prod->fetch($fk_product) > 0) { $desc = $desc?$desc:$prod->libelle; - $product_desc = nl2br(stripslashes($prod->description)); + $product_desc = $prod->description; // multiprix if($conf->global->PRODUIT_MULTIPRICES == 1) { @@ -405,7 +405,7 @@ class Commande } $sql = 'INSERT INTO '.MAIN_DB_PREFIX.'commandedet (fk_commande,label,description,fk_product, price,qty,tva_tx, remise_percent, subprice, remise)'; - $sql .= " VALUES ($this->id, '" . addslashes($desc) . "','" . addslashes($product_desc) . "',$fk_product,".price2num($price).", '$qty', $txtva, $remise_percent,'".price2num($subprice)."','".price2num( $remise)."') ;"; + $sql .= " VALUES ($this->id, '" . addslashes($desc) . "','" . nl2br(addslashes($product_desc)) . "',$fk_product,".price2num($price).", '$qty', $txtva, $remise_percent,'".price2num($subprice)."','".price2num( $remise)."') ;"; if ( $this->db->query( $sql) ) {