Skip to content

Commit

Permalink
Set owner-is-canonical based on the primary owner
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Nov 17, 2024
1 parent c2890d1 commit bc04729
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Fixed a bug where Link field query params weren’t working for elements that hadn’t been saved since updating to Craft 5.5.0+. ([#16113](https://github.com/craftcms/cms/issues/16113))
- Fixed a bug where Live Preview wasn’t reloading after reordering nested entries or addresses. ([#16122](https://github.com/craftcms/cms/issues/16122))
- Fixed a JavaScript error that could occur when reordering structured elements within an embedded element index. ([#16103](https://github.com/craftcms/cms/issues/16103))
- Fixed a bug where changes to nested entries/addresses in card view were getting published immediately on save, if the parent element was a draft.

## 5.5.0.1 - 2024-11-13

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Cp.php
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ private static function baseElementAttributes(ElementInterface $element, array $
'field-id' => $element instanceof NestedElementInterface ? $element->getField()?->id : null,
'primary-owner-id' => $element instanceof NestedElementInterface ? $element->getPrimaryOwnerId() : null,
'owner-id' => $element instanceof NestedElementInterface ? $element->getOwnerId() : null,
'owner-is-canonical' => $element instanceof NestedElementInterface ? $element->getOwner()?->getIsCanonical() : null,
'owner-is-canonical' => $element instanceof NestedElementInterface ? $element->getPrimaryOwner()?->getIsCanonical() : null,
'site-id' => $element->siteId,
'status' => $element->getStatus(),
'label' => (string)$element,
Expand Down

0 comments on commit bc04729

Please sign in to comment.