Skip to content

[5.x]: Revisions of Matrix fields are not correctly reflected when using table view mode #17887

@ryansupercool

Description

@ryansupercool

What happened?

Description

When using a Matrix field in the Table view and switching to previous revisions of the owner entry, the table view doesn't update to show the entries in that version. When restoring the entry, the table does then update to show the correct entries.

The issue isn't present when using the Matrix block view mode.

We've hit this behaviour whilst implementing our own nested elements and noticed this was also present in the Matrix field.

In our case we are working with something more along the lines of how Commerce handles nested elements but are hoping fixing this in Matrix fixes the issue for other nested element implementations.

Screen.Recording.2025-09-25.at.13.46.29.mov

Steps to reproduce

  1. Create and save a new entry
  2. Add one or more nested entries, and save
  3. Switch to a previous version of the parent entry

Expected behavior

When switching between revisions the nested element table correcly reflects the state at that revision, and the changes that would be applied.

Actual behavior

Nested element index shows no entries when switching between revisions making it hard to see exactly which changes would be applied.

Craft CMS version

5.8.17

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

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions