Skip to content

Commit

Permalink
Fixed #16598
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 31, 2025
1 parent d14888b commit ddbdd6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Fixed a bug where element card attributes weren’t saving for field layouts that didn’t have any tabs. ([#16589](https://github.com/craftcms/cms/issues/16589))
- Fixed an error that occurred when attempting to move entries to a new section, if they didn’t exist in the primary site. ([#16421](https://github.com/craftcms/cms/issues/16421))
- Fixed a bug where Link fields weren’t responsive for newly-created nested entries. ([#16592](https://github.com/craftcms/cms/issues/16592))
- Fixed an error that could occur when executing the `utils/prune-orphaned-entries` command. ([#16598](https://github.com/craftcms/cms/issues/16598))

## 5.6.3 - 2024-01-29

Expand Down
6 changes: 5 additions & 1 deletion src/base/NestedElementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,11 @@ protected function ownerType(): ?string
if (!$ownerId) {
return null;
}
$this->ownerType = Craft::$app->getElements()->getElementTypeById($ownerId);
$ownerType = Craft::$app->getElements()->getElementTypeById($ownerId);
if (!$ownerType) {
return null;
}
$this->ownerType = $ownerType;
}
return $this->ownerType;
}
Expand Down

0 comments on commit ddbdd6e

Please sign in to comment.