Backport FIx #15970
This commit is contained in:
parent
6d251e6a43
commit
934070f14e
@ -1452,11 +1452,11 @@ class User extends CommonObject
|
||||
if ($result > 0) {
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."user";
|
||||
$sql .= " SET fk_socpeople=".$contact->id;
|
||||
$sql .= ", civility=".$contact->civility_code;
|
||||
if ($contact->socid) {
|
||||
$sql .= ", civility='".$this->db->escape($contact->civility_code)."'";
|
||||
if ($contact->socid > 0) {
|
||||
$sql .= ", fk_soc=".$contact->socid;
|
||||
}
|
||||
$sql .= " WHERE rowid=".$this->id;
|
||||
$sql .= " WHERE rowid=".((int) $this->id);
|
||||
$resql = $this->db->query($sql);
|
||||
|
||||
dol_syslog(get_class($this)."::create_from_contact", LOG_DEBUG);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user