Skip to content

[6.x] Save draft-less nested elements in place - #19869

Merged
riasvdv merged 1 commit into
6.xfrom
fix/6.x-draftless-nested-element-saves
Oct 7, 2026
Merged

riasvdv merged 1 commit into
6.xfrom
fix/6.x-draftless-nested-element-saves

Conversation

@riasvdv

@riasvdv riasvdv commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Description

Saving a nested element from a slideout moves its changes into the owner's draft whenever the opener prepared one. That move needs a draft of the nested element, so element types without drafts (Commerce variants, for example) failed with “Could not save the nested element draft.” They now save in place, the same as in 5.x.

The fix applies to the Vue element editor, the Vue-hosted legacy editor, and the legacy editor opened from nested element cards.

Extracted from #19665.

Saving a nested element through a slideout redirected it into the owner's
draft whenever an owner draft was prepared, which needs a draft of the
nested element. Element types without drafts never get one, so the save
failed with "Could not save the nested element draft." They now save in
place, matching 5.x.

Co-authored-by: Nathaniel Hammond <nathaniel@pixelandtonic.com>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/ui — open Storybook

No changed components detected in this Storybook.

resources/js — open Storybook

No changed components detected in this Storybook.

@riasvdv
riasvdv merged commit 856e68a into 6.x Oct 7, 2026
19 checks passed
@riasvdv
riasvdv deleted the fix/6.x-draftless-nested-element-saves branch October 7, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant