Merge pull request #12897 from homer8173/patch-16

FIX : multicompany, impossible to add second task
This commit is contained in:
Laurent Destailleur 2020-01-22 13:49:46 +01:00 committed by GitHub
commit a1e3e44b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,7 @@ class Task extends CommonObject
$sql = "INSERT INTO ".MAIN_DB_PREFIX."projet_task (";
$sql .= "fk_projet";
$sql .= ", ref";
$sql.= ", entity";
$sql .= ", fk_task_parent";
$sql .= ", label";
$sql .= ", description";
@ -168,6 +169,7 @@ class Task extends CommonObject
$sql .= ") VALUES (";
$sql .= $this->fk_project;
$sql .= ", ".(!empty($this->ref) ? "'".$this->db->escape($this->ref)."'" : 'null');
$sql.= ", ".$conf->entity;
$sql .= ", ".$this->fk_task_parent;
$sql .= ", '".$this->db->escape($this->label)."'";
$sql .= ", '".$this->db->escape($this->description)."'";