Bugfix on ne sauvegardait pas l'unites de poids

This commit is contained in:
Rodolphe Quiedeville 2006-12-12 16:22:48 +00:00
parent d89b0735bc
commit 19409c255e

View File

@ -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) ."'";