Merge pull request #19109 from nicolas-eoxia/fix_creating_folder_in_manual_GED_tree

fix: error sql creating folder in manual GED tree #19108
This commit is contained in:
Laurent Destailleur 2021-10-22 18:59:56 +02:00 committed by GitHub
commit c2afd1be9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ class EcmDirectory extends CommonObject
$sql .= " '".$this->db->escape($this->description)."',";
$sql .= " ".((int) $this->cachenbofdoc).",";
$sql .= " '".$this->db->idate($this->date_c)."',";
$sql .= " ".($this->fk_user_c > 0 ? ((int) $this->fk_user_c) : "null").",";
$sql .= " ".($this->fk_user_c > 0 ? ((int) $this->fk_user_c) : "null");
$sql .= ")";
dol_syslog(get_class($this)."::create", LOG_DEBUG);