From d98db54c4090d267738afe0ad6836280a4099efb Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 12 Dec 2006 17:00:54 +0000 Subject: [PATCH] Gestion de la virgule dans le champs poids --- htdocs/product.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 9fb163b6b52..a496f98888a 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -219,7 +219,7 @@ class Product $this->libelle = trim($this->libelle); $this->description = trim($this->description); $this->note = trim($this->note); - $this->new_weight = trim($this->new_weight); + $this->new_weight = trim(ereg_replace(",",".",$this->new_weight)); $this->new_weight_units = trim($this->new_weight_units); $sql = "UPDATE ".MAIN_DB_PREFIX."product ";