We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eccbb6 commit 1cd68aeCopy full SHA for 1cd68ae
src/Revisions/Revision.php
@@ -47,10 +47,10 @@ public function toModel()
47
$class = app('statamic.eloquent.revisions.model');
48
49
return $class::firstOrNew(['key' => $this->key(), 'created_at' => $this->date()])->fill([
50
- 'action' => $this->action(),
51
- 'user' => $this->user()?->id(),
52
- 'message' => with($this->message(), fn ($msg) => $msg == '0' ? '' : $msg),
53
- 'attributes' => collect($this->attributes())->except('id'),
+ 'action' => $this->action(),
+ 'user' => $this->user()?->id(),
+ 'message' => with($this->message(), fn ($msg) => $msg == '0' ? '' : $msg),
+ 'attributes' => $this->attributes(),
54
'updated_at' => $this->date(),
55
]);
56
}
0 commit comments