Skip to content

Commit

Permalink
get the non-revisable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Dec 13, 2024
1 parent 42b23b7 commit cac88a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Entries/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,12 @@ protected function revisionKey()

protected function nonRevisableFields(): array
{
return [];
return $this->blueprint()
->fields()
->all()
->reject(fn ($field) => $field->isRevisable())
->keys()
->all();
}

protected function revisionAttributes()
Expand Down

0 comments on commit cac88a7

Please sign in to comment.