Fix entity when creating project (#28519)

This commit is contained in:
gti-eu 2024-02-29 15:25:20 +01:00 committed by GitHub
parent 3944eb3625
commit ef31b0969b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -494,7 +494,7 @@ class Project extends CommonObject
$sql .= ", ".($this->email_msgid ? "'".$this->db->escape($this->email_msgid)."'" : 'null');
$sql .= ", ".($this->note_private ? "'".$this->db->escape($this->note_private)."'" : 'null');
$sql .= ", ".($this->note_public ? "'".$this->db->escape($this->note_public)."'" : 'null');
$sql .= ", ".((int) $conf->entity);
$sql .= ", ".setEntity($this);
$sql .= ", ".(!isset($this->ip) ? 'NULL' : "'".$this->db->escape($this->ip)."'");
$sql .= ")";