From a613b057d636085c5e5bc9fef3781d1b0e497dec Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 19 Feb 2006 15:00:12 +0000 Subject: [PATCH] Fix: le prefix ne pouvait pas s'enlever --- htdocs/societe.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 8b7cfc013b5..5e834ef8962 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -316,7 +316,7 @@ class Societe { $sql .= ",tva_intra = '" . addslashes($this->tva_intra) ."'"; $sql .= ",capital = '" . addslashes($this->capital) ."'"; - if ($this->prefix_comm) $sql .= ",prefix_comm = '" . $this->prefix_comm ."'"; + if ($this->prefix_comm) $sql .= ",prefix_comm = ".($this->prefix_comm?"'".$this->prefix_comm."'":"null"); if ($this->effectif_id) $sql .= ",fk_effectif = '" . $this->effectif_id ."'";