2
0
forked from Wavyzz/dolibarr

Fix: code is not set during update if not needed

This commit is contained in:
Laurent Destailleur
2011-12-21 21:50:25 +01:00
parent b9d578b408
commit f7d70d35a7

View File

@@ -515,7 +515,7 @@ class Societe extends CommonObject
$sql .= ",default_lang = ".($this->default_lang?"'".$this->default_lang."'":"null"); $sql .= ",default_lang = ".($this->default_lang?"'".$this->default_lang."'":"null");
$sql .= ",logo = ".($this->logo?"'".$this->logo."'":"null"); $sql .= ",logo = ".($this->logo?"'".$this->logo."'":"null");
if ($allowmodcodeclient) if ($allowmodcodeclient && $this->client)
{ {
//$this->check_codeclient(); //$this->check_codeclient();
@@ -527,7 +527,7 @@ class Societe extends CommonObject
$sql .= ", code_compta = ".($this->code_compta?"'".$this->db->escape($this->code_compta)."'":"null"); $sql .= ", code_compta = ".($this->code_compta?"'".$this->db->escape($this->code_compta)."'":"null");
} }
if ($allowmodcodefournisseur) if ($allowmodcodefournisseur && $this->fournisseur)
{ {
//$this->check_codefournisseur(); //$this->check_codefournisseur();