Skip to content

Commit

Permalink
Merge pull request #7667 from mistraloz/patch-1
Browse files Browse the repository at this point in the history
Fix Error Column 'date_m' cannot be null
  • Loading branch information
eldy committed Oct 22, 2017
2 parents fb13419 + 649d958 commit 9c59b63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/ecm/class/ecmfiles.class.php
Expand Up @@ -141,6 +141,7 @@ public function create(User $user, $notrigger = false)
$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);
Expand Down

0 comments on commit 9c59b63

Please sign in to comment.