Skip to content

[5.x]: removing a field that is included in a show-rule of another field, causes an error in CP entry view #14838

@krizzzly

Description

@krizzzly

What happened?

Description

Error: Invalid field layout element UUID:

Steps to reproduce

  1. create 2 fields (lightswitch and input) inside a matrix element
  2. input only shows when lightswitch is on
  3. add matrix field to entry
  4. remove lightswitch field from field layout
  5. open cp url of entry again

Expected behavior

Actual behavior

Craft CMS version

5

PHP version

8

Operating system and version

linux

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