Merge pull request #19744 from javieralapps4up/develop

FIX: Thirdparty fk_user_creat is not saved
This commit is contained in:
Laurent Destailleur 2022-01-06 10:40:47 +01:00 committed by GitHub
commit 3689940c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -905,8 +905,8 @@ class Societe extends CommonObject
$sql .= ", accountancy_code_sell";
}
$sql .= ") VALUES ('".$this->db->escape($this->name)."', '".$this->db->escape($this->name_alias)."', ".((int) $this->entity).", '".$this->db->idate($now)."'";
$sql .= ", ".(!empty($user->id) ? ((int) $user->id) : "null");
$sql .= ", ".(!empty($this->typent_id) ? ((int) $this->typent_id) : "null");
$sql .= ", ".(!empty($user->id) ? ((int) $user->id) : "null");
$sql .= ", ".(!empty($this->canvas) ? "'".$this->db->escape($this->canvas)."'" : "null");
$sql .= ", ".((int) $this->status);
$sql .= ", ".(!empty($this->ref_ext) ? "'".$this->db->escape($this->ref_ext)."'" : "null");