Skip to content

[5.x]: Replacing a field in a field layout does not update field conditions using that field #19486

Description

@MoritzLost

What happened?

Description

When a field in a field layout is replaced, existing field conditions are not updated to point to the new field.

Steps to reproduce

  1. Create an entry type with two fields field_a and field_b.
  2. Add a visibility entry condition to field_b to only show up when field_a has a value.
  3. Replace field_a with a new field (field_c).
  4. In the field layout, field_a still has the diamond icon indicating a field condition. But opening the field doesn't show any field conditions.

Expected behavior

When a field is replaced, all field conditions in that field layout should be updated to reflect the change.

Actual behavior

See above.

Craft CMS version

5.10.14

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions