Add import_key attribute into contact class creation SQL request

This commit is contained in:
fhenry 2012-11-30 04:40:06 +01:00
parent a49bf61f33
commit 1315e9a2ba

View File

@ -127,6 +127,7 @@ class Contact extends CommonObject
$sql.= ", priv";
$sql.= ", canvas";
$sql.= ", entity";
$sql.= ", import_key";
$sql.= ") VALUES (";
$sql.= "'".$this->db->idate($now)."',";
if ($this->socid > 0) $sql.= " ".$this->socid.",";
@ -136,7 +137,8 @@ class Contact extends CommonObject
$sql.= " ".($user->id > 0 ? "'".$user->id."'":"null").",";
$sql.= " ".$this->priv.",";
$sql.= " ".($this->canvas?"'".$this->canvas."'":"null").",";
$sql.= " ".$conf->entity;
$sql.= " ".$conf->entity.",";
$sql.= " ".$this->import_key.",";
$sql.= ")";
dol_syslog(get_class($this)."::create sql=".$sql);