From 366c83e9b9c2fe038a0b6e842d5d69d734985406 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 11 Feb 2006 18:16:48 +0000 Subject: [PATCH] modification de la description produit --- htdocs/commande/commande.class.php | 2 +- htdocs/commande/fiche.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 14ffc024487..7c8d4dcf9e6 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -409,7 +409,7 @@ class Commande if ($conf->global->CHANGE_PROD_DESC) { - $sql .= " VALUES ($this->id, '" . addslashes($desc) . "','" . nl2br(addslashes($product_desc)) . "',$fk_product,".price2num($price).", '$qty', $txtva, $remise_percent,'".price2num($subprice)."','".price2num( $remise)."') ;"; + $sql .= " VALUES ($this->id, '" . addslashes($desc) . "','" . addslashes($product_desc) . "',$fk_product,".price2num($price).", '$qty', $txtva, $remise_percent,'".price2num($subprice)."','".price2num( $remise)."') ;"; } else { diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index f5fdc4b0b4f..d78adbc800c 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -723,7 +723,7 @@ else if ($objp->fk_product_type) print img_object($langs->trans('ShowService'),'service'); else print img_object($langs->trans('ShowProduct'),'product'); print ' '.$objp->ref.' - '.stripslashes(nl2br($objp->product)); - print ($objp->description && $objp->description!=$objp->product)?'
'.$objp->description:''; + print ($objp->description && $objp->description!=$objp->product)?'
'.stripslashes(nl2br($objp->description)):''; print ''; } else