Merge pull request #16004 from Hystepik/develop#2
Fix #15970 user.class.php
This commit is contained in:
commit
0c4d9c2e3a
@ -1419,11 +1419,12 @@ class User extends CommonObject
|
|||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."user";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."user";
|
||||||
$sql .= " SET fk_socpeople=".$contact->id;
|
$sql .= " SET fk_socpeople=".$contact->id;
|
||||||
$sql .= ", civility=".$contact->civility_code;
|
$sql .= ", civility='".$this->db->escape($contact->civility_code)."'";
|
||||||
if ($contact->socid) {
|
if ($contact->socid) {
|
||||||
$sql .= ", fk_soc=".$contact->socid;
|
$sql .= ", fk_soc=".$contact->socid;
|
||||||
}
|
}
|
||||||
$sql .= " WHERE rowid=".$this->id;
|
$sql .= " WHERE rowid=".$this->id;
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::create_from_contact", LOG_DEBUG);
|
dol_syslog(get_class($this)."::create_from_contact", LOG_DEBUG);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user