Skip to content

[5.x]: Modified matrix entries don't get updated after adding or deleting an entry to the matrix (Copy of #15069) #15353

@Liamm3

Description

@Liamm3

What happened?

Description

On May 24 2024 I created an issue regarding problems when saving modified matrix blocks. Today I encountered the same problem again.
When modifying an existent matrix block, adding a new block and then saving the entry, all the data in the modified matrix block gets lost.

Steps to reproduce

  1. Create a new matrix field
  2. Add some entry types (e.g. 'Plain Text')
  3. Disable the title field and generate the title from the plaintext field
    area_813
  4. Add the matrix field to a section
  5. Create a new entry in the section
  6. Add an entry to the matrix
    area_816
  7. Save the entry using Ctrl+S
  8. Modify the created matrix block
  9. Add a new entry to the matrix
    area_817
  10. Save again
  11. All the changes are lost
    area_818

Expected behavior

The modified matrix entry should be saved after saving the entry.

Actual behavior

Changes on a modified entry are lost, after adding a new entry to the matrix.

Craft CMS version

5.2.6

PHP version

8.3

Operating system and version

Linux using ddev

Database type and version

MariaDB 10.6

Image driver and version

No response

Installed plugins and versions

  • ether/seo v5.0.0-rc4
  • craftcms/ckeditor 4.1.0

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