craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
287 stars 139 forks source link

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

Closed amclaughlin-prophix closed 1 week ago

amclaughlin-prophix commented 3 weeks ago

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

i-just commented 1 week ago

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!