Merge pull request #16004 from Hystepik/develop#2

Fix #15970 user.class.php
This commit is contained in:
Laurent Destailleur 2021-01-19 10:54:24 +01:00 committed by GitHub
commit 0c4d9c2e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1419,11 +1419,12 @@ class User extends CommonObject
if ($result > 0) {
$sql = "UPDATE ".MAIN_DB_PREFIX."user";
$sql .= " SET fk_socpeople=".$contact->id;
$sql .= ", civility=".$contact->civility_code;
$sql .= ", civility='".$this->db->escape($contact->civility_code)."'";
if ($contact->socid) {
$sql .= ", fk_soc=".$contact->socid;
}
$sql .= " WHERE rowid=".$this->id;
$resql = $this->db->query($sql);
dol_syslog(get_class($this)."::create_from_contact", LOG_DEBUG);