diff --git a/htdocs/ecm/class/ecmfiles.class.php b/htdocs/ecm/class/ecmfiles.class.php index 8308d7c7315..8e9f5c6557e 100644 --- a/htdocs/ecm/class/ecmfiles.class.php +++ b/htdocs/ecm/class/ecmfiles.class.php @@ -141,6 +141,7 @@ class EcmFiles //extends CommonObject $this->acl = trim($this->acl); } if (empty($this->date_c)) $this->date_c = dol_now(); + if (empty($this->date_m)) $this->date_m = dol_now(); // If ref not defined $ref = dol_hash($this->filepath.'/'.$this->filename, 3);