Fix bad Warning: Bad formed request converted PGSQL
This commit is contained in:
parent
5acdbfa8f0
commit
1c1736fa20
@ -187,7 +187,7 @@ abstract class CommonObject
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."element_contact";
|
||||
$sql.= " (element_id, fk_socpeople, datecreate, statut, fk_c_type_contact) ";
|
||||
$sql.= " VALUES (".$this->id.", ".$fk_socpeople." , " ;
|
||||
$sql.= $this->db->idate($datecreate);
|
||||
$sql.= "'".$this->db->idate($datecreate)."'";
|
||||
$sql.= ", 4, '". $id_type_contact . "' ";
|
||||
$sql.= ")";
|
||||
dol_syslog(get_class($this)."::add_contact sql=".$sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user