Skip to content

[5.x]: Editability conditions on matrix fields are overriding conditions in nested elements #18338

@membla

Description

@membla

What happened?

Description

Editability conditions on matrix fields are setting edibility for fields in nested elements. This seem counterintuitive and inconsistent to me - I believe it should only affect the edibility of the actual Matrix field.

The way it is set up now overrides any Editability conditions on fields in nested entries.

Steps to reproduce

  1. Create a matrix field
  2. Set Editability conditions on the matrix field
  3. Add an element that itself has fields with Editability conditions to the matrix field

Expected behavior

The Editability conditions of the fields in the entry added should be respected.

Actual behavior

All fields contained in the Matrix field are non-editable if Editability conditions make the matrix field non-editable.

Craft CMS version

5.9.1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions