Skip to content

Commit 1cd68ae

Browse files
authored
Store revision attribute id due to change in core (#230)
* Store revision attribute id * StyleCI
1 parent 6eccbb6 commit 1cd68ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Revisions/Revision.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public function toModel()
4747
$class = app('statamic.eloquent.revisions.model');
4848

4949
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'),
50+
'action' => $this->action(),
51+
'user' => $this->user()?->id(),
52+
'message' => with($this->message(), fn ($msg) => $msg == '0' ? '' : $msg),
53+
'attributes' => $this->attributes(),
5454
'updated_at' => $this->date(),
5555
]);
5656
}

0 commit comments

Comments
 (0)