Fix setting date_creation
This commit is contained in:
parent
f2006c6575
commit
992807ef2a
1 changed files with 1 additions and 0 deletions
|
|
@ -10333,6 +10333,7 @@ abstract class CommonObject
|
|||
|
||||
if (array_key_exists('date_creation', $fieldvalues) && empty($fieldvalues['date_creation'])) {
|
||||
$fieldvalues['date_creation'] = $this->db->idate($now);
|
||||
$this->date_creation = $this->db->idate($now);
|
||||
}
|
||||
if (array_key_exists('fk_user_creat', $fieldvalues) && !($fieldvalues['fk_user_creat'] > 0)) {
|
||||
$fieldvalues['fk_user_creat'] = $user->id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue