Fix: Il ne faut pas modifier le user de creation
This commit is contained in:
parent
adb3461bc6
commit
28e954f6da
@ -761,24 +761,8 @@ class User
|
|||||||
|
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."socpeople";
|
$this->db->commit();
|
||||||
$sql.= " SET fk_user_create = ".$this->id;
|
return $this->id;
|
||||||
$sql.= " WHERE idp = ".$contact->id;
|
|
||||||
$resql=$this->db->query($sql);
|
|
||||||
|
|
||||||
if ($resql)
|
|
||||||
{
|
|
||||||
$this->db->commit();
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->error=$this->db->error()." - $sql";
|
|
||||||
dolibarr_syslog("User::create_from_contact - 20 - ".$this->error);
|
|
||||||
|
|
||||||
$this->db->rollback();
|
|
||||||
return -2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user