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.
Steps to reproduce
- 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.
- Create a nested entry in the field. Confirm that the entry index in the field is rendered with the configured columns.
- 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
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.
Steps to reproduce
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