Skip to content

Commit

Permalink
Fixed #16807
Browse files Browse the repository at this point in the history
Resolves #16822
  • Loading branch information
brandonkelly committed Mar 4, 2025
1 parent 462741b commit 5ccc40f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Fixed an error that could occur when saving a Commerce variant. ([#16789](https://github.com/craftcms/cms/pull/16789))
- Fixed a bug where two entries could be created simultaneously when creating a new entry via the “New entry” menu on the Entries index page. ([#16487](https://github.com/craftcms/cms/issues/16487))
- Fixed an error that could occur if a field was removed from a field layout, if another field had been conditional based on it. ([#16801](https://github.com/craftcms/cms/issues/16801))
- Fixed an error that occurred when attempting to save a nested entry via a slideout, which had been duplicated from another entry and wasn’t yet fully saved. ([#16807](https://github.com/craftcms/cms/issues/16807))
- Fixed a styling issue. ([#16791](https://github.com/craftcms/cms/issues/16791))

## 5.6.10.2 - 2025-02-26
Expand Down
1 change: 1 addition & 0 deletions src/helpers/Cp.php
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ private static function baseElementAttributes(ElementInterface $element, array $
'owner-id' => $element instanceof NestedElementInterface ? $element->getOwnerId() : null,
'owner-is-canonical' => self::elementOwnerIsCanonical($element),
'site-id' => $element->siteId,
'is-unpublished-draft' => $element->getIsUnpublishedDraft(),
'status' => $element->getStatus(),
'label' => (string)$element,
'url' => $element->getUrl(),
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/web/assets/cp/src/js/NestedElementManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ Craft.NestedElementManager = Garnish.Base.extend(
if (
typeof this.elementEditor !== 'undefined' &&
Garnish.hasAttr($element, 'data-owner-is-canonical') &&
!Garnish.hasAttr($element, 'data-is-unpublished-draft') &&
!this.elementEditor.settings.isUnpublishedDraft
) {
await slideout.elementEditor.checkForm(true, true);
Expand Down

0 comments on commit 5ccc40f

Please sign in to comment.