Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Nested matrix entry types disappear when page is reloaded after making changes #15256

Closed
sparkalow opened this issue Jun 26, 2024 · 2 comments
Assignees
Labels

Comments

@sparkalow
Copy link

What happened?

Description

When editing fields of a nested entry in a matrix field, the "changed" fields blue indicators show as expected. However, reloading the page results in the changed blocks disappearing. This only seems to happen with blocks set to "inline editable" display mode. Saving in this state will result in the blocks being deleted. Discarding changes will restore the missing bits.

Steps to reproduce

  1. Edit an entry that has a matrix field that contains a nested matrix field with multiple entries - set to display "inline editable blocks."
  2. Edit at least 2 of the nested matrix entries.
  3. Reload the page.

Expected behavior

All edits are shown in "draft" mode with changes hi-lighted.

Actual behavior

The changed nested entries no longer show and appear to have been deleted.

I've created a vanilla install with no plugins that can reproduce this consistently and can provide a db dump.

nested-matrix-bug.mp4

Craft CMS version

Craft 5.2.3

PHP version

8.3.8

Operating system and version

Linux 6.6.31-linuxkit

Database type and version

MySQL 8.0.36

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

No plugins.

@i-just
Copy link
Contributor

i-just commented Jun 27, 2024

Hi, thanks for reporting! I just raised a PR for this.

@brandonkelly
Copy link
Member

Craft 5.2.4 is out with a fix for this. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants