Skip to content

Commit

Permalink
[5.1] Use created_by 0 if created_by is empty (#43752)
Browse files Browse the repository at this point in the history
  • Loading branch information
chmst authored Jul 8, 2024
1 parent e369ef0 commit 9446241
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/src/Table/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ public function store($updateNulls = true)
// Existing item
$this->modified_by = $user->get('id');
$this->modified = $date;
if (empty($this->created_by)) {
$this->created_by = 0;
}
} else {
// Field created_by can be set by the user, so we don't touch it if it's set.
if (empty($this->created_by)) {
Expand Down

0 comments on commit 9446241

Please sign in to comment.