Skip to content

[5.x]: Element Index view on Matrix field shows some relations twice #15777

@tommysvr

Description

@tommysvr

What happened?

Description

When using Element Index view on a Matrix field, relations are shown in the original field and the multi-instance field.

Steps to reproduce

  1. Create a Matrix Field
  2. Create an Entry Type and add the same entries field twice
  3. Set Matrix field View Mode to 'As an element index', 'Include Table View' enabled and add entries fields to Default Table Columns
  4. Create an Entry & Nested Entry inside the Matrix field, add one relation to each entries field
  5. Element Index view will show the relation from the second entries field on the first entries field

Expected behavior

Each entries field will show only one relation in this case

Actual behavior

The first entries field shows its relation and the relation of the second entries field

Screenshots hopefully explain a little bit better

Matrix Field settings:
screenshot_2024_09_23 _12 00


Entry Type:
screenshot_2024_09_23 _12 00


Nested Entry:
screenshot_2024_09_23 _12 00


Columns showing duplicate relation:
screenshot_2024_09_23 _11 59

Craft CMS version

5.4.4

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions