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

Matrix Fields written empty when Do not import is selected. #1500

Closed
amclaughlin-prophix opened this issue Aug 26, 2024 · 1 comment
Closed
Labels

Comments

@amclaughlin-prophix
Copy link

Description

When updating a field within a matrix block all other fields which contain data in this block are deleted.

Steps to reproduce

  1. Update a single field within a matrix block, set all other fields to do not import
  2. Run Feed me.

Additional info

  • Craft version: Craft Pro 4.11.3
  • PHP version: 8.2.20
  • Database driver & version: MariaDB 10.5.16
  • Plugins & versions: 5.7.0
@i-just
Copy link
Contributor

i-just commented Sep 10, 2024

Hi, thanks for getting in touch!

This is expected behaviour. When you import into a matrix field, we have no way of matching the existing blocks with the data in your feed. This means that each time you import into a matrix field, the blocks that were there before are removed and new ones are created. If you only have data for one field in a matrix block (and you’re not using defaults), then the rest of the fields in that block will be empty.

I hope this clarifies things!

@i-just i-just closed this as completed Sep 10, 2024
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
@i-just @amclaughlin-prophix and others