Skip to content

[5.x]: Entry Condition not working properly on Matrix fields. #15260

@belkin

Description

@belkin

What happened?

Description

The "Entry Condition" for fields in a Matrix does not work correctly when setting the condition to "Section -> Is one of -> 'Desired section'". This issue was tested on the latest Craft CMS version (5.2.3) and the demo version (europa.museum 5.1.9), both exhibiting the same problem.

Steps to reproduce

  1. Create a Matrix field with several block types.
  2. Set an Entry Condition on a field within one of the block types using the following settings:
  • Entry Condition -> Section -> Is one of -> "Desired section"
image
  1. Navigate to a section where the Matrix field is used. The field will not be visible in any section, including the "Desired section" specified in the condition.
image

Expected behavior

The field should be visible only in the selected section when editing an entry.

Actual behavior

The field does not appear in any section, including the specified "Desired section".

Craft CMS version

5.2.3

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