From 19409c255e0af10e1ba6ad4c3b366d62e7003e5d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 12 Dec 2006 16:22:48 +0000 Subject: [PATCH] Bugfix on ne sauvegardait pas l'unites de poids --- htdocs/product.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 9aeb2e15cf6..9fb163b6b52 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -220,6 +220,7 @@ class Product $this->description = trim($this->description); $this->note = trim($this->note); $this->new_weight = trim($this->new_weight); + $this->new_weight_units = trim($this->new_weight_units); $sql = "UPDATE ".MAIN_DB_PREFIX."product "; $sql .= " SET label = '" . addslashes($this->libelle) ."'"; @@ -227,6 +228,7 @@ class Product $sql .= ",tva_tx = '" . $this->tva_tx."'"; $sql .= ",envente = " . $this->status; $sql .= ",weight = '" . $this->new_weight."'"; + $sql .= ",weight_units = '" . $this->new_weight_units."'"; $sql .= ",seuil_stock_alerte = '" . $this->seuil_stock_alerte."'"; $sql .= ",description = '" . addslashes($this->description) ."'"; $sql .= ",stock_loc = '" . addslashes($this->stock_loc) ."'";