From 18b3bd6b7e7438aebd379a4c7816fa9a4fabb115 Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Thu, 16 Mar 2006 13:05:40 +0000 Subject: [PATCH] modif pour sousproduits --- htdocs/product.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 8b72d213321..09d35803f46 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -730,8 +730,7 @@ class Product } } - - + $sql = "SELECT reel, fk_entrepot"; $sql .= " FROM ".MAIN_DB_PREFIX."product_stock WHERE fk_product = '".$this->id."'"; $result = $this->db->query($sql) ; @@ -1321,7 +1320,7 @@ class Product $this->res[]= array($compl_path.stripslashes($nom_pere),$desc_pere); if(sizeof($desc_pere) >1) { - $this ->fetch_prod_arbo($desc_pere,$nom_pere." -> "); + $this ->fetch_prod_arbo($desc_pere,stripslashes($nom_pere)." -> "); } } } @@ -1389,7 +1388,7 @@ function get_arbo_each_prod() { $prods[addslashes($rec['label'])]= array(0=>$rec['id'],1=>$rec['qty']); foreach($this -> get_fils_arbo($rec['id']) as $kf=>$vf) - $prods[$rec['label']][$kf] = $vf; + $prods[addslashes($rec['label'])][$kf] = $vf; } return $prods; }