From 3d746aab2e888feaf17a466a5a2ae9c78ef6e46f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 24 Nov 2004 11:16:20 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20update=20qui=20buggait=20lors=20du=20pa?= =?UTF-8?q?ssage=20d'une=20societe=20de=20fournisseur=20=E0=20non=20fourni?= =?UTF-8?q?sseur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/societe.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 2d2a3198196..d74078c3588 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -174,8 +174,10 @@ class Societe { { $sql .= ",fk_forme_juridique = '" . trim($this->forme_juridique_code) ."'"; } - if (trim($this->client)) { $sql .= ",client = '" . $this->client ."'"; } - if (trim($this->fournisseur)) { $sql .= ",fournisseur = '" . $this->fournisseur ."'"; } + + $sql .= ",client = " . $this->client; + $sql .= ",fournisseur = " . $this->fournisseur; + if ($user) { $sql .= ",fk_user_modif = '".$user->id."'"; }