Skip to content

[5.x]: Matrix field blocks related to an entrified global are soft deleted (regression) #18767

@tomdavies

Description

@tomdavies

What happened?

Description

tldr; #18650 was marked fixed in fce1ddf (shipped in 5.9.19) but I am seeing the same issue in 5.9.21

Note

In case it's relevant: this is an old site that was created on C3, and has been updated => C4, then => C5

Steps to reproduce

  1. Create a global siteSettings with a matrix field
  2. Populate the matrix field with at least one block
  3. run craft entrify/global-set siteSettings --section siteSettings
  4. Navigate to siteSettings single in the Craft CP
  5. Matrix field from [2] appears empty
  6. Switch field to index view + change status to Trashed, matrix blocks shown

Expected behavior

Blocks that belong to a matrix field on a global are not soft deleted during entrification of that global

Actual behavior

Matrix field blocks are soft deleted during entrification

Craft CMS version

5.9.21

PHP version

8.4.18

Operating system and version

ddev / linux

Database type and version

MySQL 8.0

Image driver and version

No response

Installed plugins and versions

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