Skip to content

[5.x]: Nested entries - Creating a draft is not adding the card #16282

@rgauthier4c4

Description

@rgauthier4c4

What happened?

Description

In a matrix field, if I create a nested entry and exit the panel, the new drafted card isn't added to the field.

And if the nested entry have a required field, an validation error will appear on publishing and the drafted field will now be added to the matrix field.

Here's a video of he problem : https://www.gauthier-robin.com/uploads/craftcms/draft-not-added.mov

Steps to reproduce

  1. Create a matrix field with an entrytype with a required field
  2. In the section with the field, create a new block and when the panel open, close it without filling the required field.
  3. The list should be empty
  4. Try to publish the changes
  5. A validation error appears and the entry draft is now shown

Expected behavior

The block list should refresh when the panel is closing

Actual behavior

The draft is invisible until the error is displayed

Craft CMS version

5.5.5

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions