2
0
forked from Wavyzz/dolibarr

Fix: Regression

This commit is contained in:
Laurent Destailleur
2013-04-10 00:08:55 +02:00
parent af6f075b5c
commit e79d0f50d0

View File

@@ -1420,7 +1420,7 @@ abstract class CommonObject
dol_syslog(get_class($this)."::update_note_private sql=".$sql, LOG_DEBUG);
if ($this->db->query($sql))
{
$this->note_private = $note;
$this->note_private = $note_private;
return 1;
}
else
@@ -1430,7 +1430,7 @@ abstract class CommonObject
return -1;
}
}
/**
* Update private note of element
*
@@ -1444,11 +1444,11 @@ abstract class CommonObject
dol_syslog(get_class($this)."::update_note was called on objet with property table_element not defined", LOG_ERR);
return -1;
}
$sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element;
$sql.= " SET note = ".(!empty($note)?("'".$this->db->escape($note)."'"):"NULL");
$sql.= " WHERE rowid =". $this->id;
dol_syslog(get_class($this)."::update_note sql=".$sql, LOG_DEBUG);
if ($this->db->query($sql))
{