Skip to content

[5.x]: Matrix field using "Index" view mode not applying default table columns in "Read Only" mode #18684

@mmikkel

Description

@mmikkel

What happened?

Description

If a Matrix field using the "Index" view mode is rendered in "Read Only" mode, the field's "Default Table Columns" setting is disregarded and the nested entry index is rendered with Craft's default columns.

This happens both when viewing an a revision for the owner entry, or when logged in as a user who only has "View" access for the owner entry's section.

Image Image Image

Steps to reproduce

  1. Create a Matrix field using the "Index" view mode. Enable the "Include Table View" setting, and configure the "Default Table Columns" to something other than the Craft defaults.
  2. Create a nested entry in the field. Confirm that the entry index in the field is rendered with the configured columns.
  3. View a revision for the owner entry, or log in as a user that only has the "View entries" and "View other users’ entries" permissions for the owner entry's section. Confirm that the entry index in the field is now rendered with Craft's default table columns.

Expected behavior

Nested entry indexes should always be rendered with the configured "Default Table Columns", regardless of whether or not the field is editable or not.

Actual behavior

Nested entry indexes disregard the "Default Table Columns" setting when the field is Read Only.

Craft CMS version

5.9.19

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

None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions