Merge pull request #7667 from mistraloz/patch-1

Fix Error Column 'date_m' cannot be null
This commit is contained in:
Laurent Destailleur 2017-10-22 02:45:02 +02:00 committed by GitHub
commit 9c59b63343

View File

@ -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);