Skip to content

[5.x]: Selected entry in link fields is not saved when inside new nested entries #16592

@aelvan

Description

@aelvan

What happened?

Description

Starting in 5.6.2, if you create a new nested entry, either inside a matrix or in ckeditor, that has a link field in it, select an entry and save, the entry disappears. See the following videos:

CleanShot.2025-01-30.at.11.30.20.mp4
CleanShot.2025-01-30.at.11.39.33.mp4

Possibly related to this issue? #16519

Steps to reproduce

  1. Create a new entry type that has a link field, with entries enabled.
  2. Create a new matrix field and add the entry type to it.
  3. Add the matrix field to the entry type for a section.
  4. Create a new entry in section.
  5. Create a new block in the matrix field.
  6. Add an entry to the link field.
  7. Save.

Expected behavior

The entry should be saved with a matrix block and an entry in the link field.

Actual behavior

The entry is gone.

Craft CMS version

5.6.3

PHP version

8.3

Operating system and version

No response

Database type and version

Mysql 8.0

Image driver and version

No response

Installed plugins and versions

Clean install, no plugins.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions