Skip to content

[5.x]: Matrix field's content not copied over to newly activated site #18621

@sander-lameco

Description

@sander-lameco

What happened?

Description

Did something change with when contents of matrix fields gets copied over to a newly enable site (multi-site setup). We always set it to "Only save entries to the site they were created in" so it is "translatable", but before when enabling an entry for another site the entries inside a matrix got copied over.

Steps to reproduce

  1. Create a matrix field with at least 1 block that has a text field.
  2. Create at least 2 sites (X and Y).
  3. Create an entry section with the matrix field.
  4. Create an entry in site X and add the block with some content in the text field.
  5. Save the entry.
  6. Add site Y through the Status widget on the right.
  7. Switch to the entry in site Y.

Expected behavior

The blocks existing in the entry on site X should be copied over to site Y when adding the entry for that side.

Actual behavior

The Matrix field remains empty.

Craft CMS version

5.9.17

PHP version

8.5

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