From b287c2f82a5de72ca8df6c3d69a7d1fba2b1b633 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 9 May 2006 19:03:17 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Plantage=20si=20tva=20non=20d=E9finie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 4458d086679..6f8dc1c3b99 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -215,9 +215,9 @@ class Product $sql = "UPDATE ".MAIN_DB_PREFIX."product "; $sql .= " SET label = '" . addslashes($this->libelle) ."'"; if ($this->ref) $sql .= ",ref = '" . $this->ref ."'"; - $sql .= ",tva_tx = " . $this->tva_tx ; - $sql .= ",envente = " . $this->status ; - $sql .= ",seuil_stock_alerte = " . $this->seuil_stock_alerte ; + $sql .= ",tva_tx = '" . $this->tva_tx."'"; + $sql .= ",envente = " . $this->status; + $sql .= ",seuil_stock_alerte = " . $this->seuil_stock_alerte; $sql .= ",description = '" . addslashes($this->description) ."'"; $sql .= ",note = '" . addslashes($this->note) ."'"; $sql .= ",duration = '" . $this->duration_value . $this->duration_unit ."'";