Fix: More complete function

This commit is contained in:
Laurent Destailleur 2013-04-10 11:03:24 +02:00
parent b496436fe3
commit bc1469ff29

View File

@ -1421,12 +1421,14 @@ abstract class CommonObject
dol_syslog(get_class($this)."::update_note sql=".$sql, LOG_DEBUG);
if ($this->db->query($sql))
{
$this->note = $note; // deprecated
if ($suffix == '_public') $this->note_public = $note;
else if ($suffix == '_private') $this->note_private = $note;
else $this->note = $note;
return 1;
}
else
{
$this->error=$this->db->error();
$this->error=$this->db->lasterror();
dol_syslog(get_class($this)."::update_note error=".$this->error, LOG_ERR);
return -1;
}