diff --git a/administrator/components/com_fields/Table/FieldTable.php b/administrator/components/com_fields/Table/FieldTable.php index 8e3ec9d0ec336..102498216a647 100644 --- a/administrator/components/com_fields/Table/FieldTable.php +++ b/administrator/components/com_fields/Table/FieldTable.php @@ -143,16 +143,14 @@ public function check() } else { + $this->modified_time = $this->getDbo()->getNullDate(); + $this->modified_by = 0; + if (!(int) $this->created_time) { $this->created_time = $date->toSql(); } - if (!(int) $this->modified_time) - { - $this->modified_time = $date->toSql(); - } - if (empty($this->created_user_id)) { $this->created_user_id = $user->get('id'); diff --git a/administrator/components/com_fields/Table/GroupTable.php b/administrator/components/com_fields/Table/GroupTable.php index 37284c4fcdaa5..e4d1ed348ec4a 100644 --- a/administrator/components/com_fields/Table/GroupTable.php +++ b/administrator/components/com_fields/Table/GroupTable.php @@ -102,6 +102,9 @@ public function check() } else { + $this->modified = $this->getDbo()->getNullDate(); + $this->modified_by = 0; + if (!(int) $this->created) { $this->created = $date->toSql();