Update societe.class.php
fix error for function update() Now it updates the note_public and note_private.
This commit is contained in:
parent
82348cc1e9
commit
fdcab4c6e1
@ -737,7 +737,9 @@ class Societe extends CommonObject
|
||||
$this->fax = preg_replace("/\./","",$this->fax);
|
||||
$this->email = trim($this->email);
|
||||
$this->skype = trim($this->skype);
|
||||
$this->url = $this->url?clean_url($this->url,0):'';
|
||||
$this->url = $this->url?clean_url($this->url,0):'';
|
||||
$this->note_private = trim($this->note_private);
|
||||
$this->note_public = trim($this->note_public);
|
||||
$this->idprof1 = trim($this->idprof1);
|
||||
$this->idprof2 = trim($this->idprof2);
|
||||
$this->idprof3 = trim($this->idprof3);
|
||||
@ -852,6 +854,9 @@ class Societe extends CommonObject
|
||||
$sql .= ",skype = ".(! empty($this->skype)?"'".$this->db->escape($this->skype)."'":"null");
|
||||
$sql .= ",url = ".(! empty($this->url)?"'".$this->db->escape($this->url)."'":"null");
|
||||
|
||||
$sql .= ",note_private = ".(! empty($this->note_private)?"'".$this->db->escape($this->note_private)."'":"null");
|
||||
$sql .= ",note_public = ".(! empty($this->note_public)?"'".$this->db->escape($this->note_public)."'":"null");
|
||||
|
||||
$sql .= ",siren = '". $this->db->escape($this->idprof1) ."'";
|
||||
$sql .= ",siret = '". $this->db->escape($this->idprof2) ."'";
|
||||
$sql .= ",ape = '". $this->db->escape($this->idprof3) ."'";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user