Skip to content

Commit

Permalink
[5.x] Fix broken state of "Parent" field when saving Home entry with …
Browse files Browse the repository at this point in the history
…Revisions (#10726)
  • Loading branch information
duncanmcclean authored Sep 11, 2024
1 parent 121607d commit 1eb381d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ protected function extractFromFields($entry, $blueprint)
if ($entry->hasStructure()) {
$values['parent'] = array_filter([optional($entry->parent())->id()]);

if ($entry->revisionsEnabled() && $entry->has('parent')) {
$values['parent'] = [$entry->get('parent')];
if ($entry->revisionsEnabled() && $parent = $entry->get('parent')) {
$values['parent'] = [$parent];
}
}

Expand Down

0 comments on commit 1eb381d

Please sign in to comment.