craftcms / feed-me

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

Super Table within Matrix nukes content #1217

Open maxpdesign opened 1 year ago

maxpdesign commented 1 year ago

Description

For a client site I created a content builder with a Matrix field that uses a Super Table field to provide nesting for an additional Matrix field. I use the Matrix nesting so they can build FAQ block between other blocks.

This Content Builder is also being used on a section where a daily import is done using Feed Me. For the import I mapped the appropriate fields but the Content Builder is not mapped because this content should not be overwritten during this import. But each time this import runs, it gets overwritten by an empty array. The result is that all the content in this field gets nuked.

I tracked down the issue to the use of a Super Table within the Matrix field. Once I remove this Super Table, the content within the field doesn't get overwritten. Somehow Feed Me marks the matrix field for import when the Super Table field is used within.

Steps to reproduce

  1. Create a matrix field with a super table field as a block (will not be mapped for import)
  2. Create a text field (will be mapped for import and used as unique identifier to match against)
  3. Add the fields to the section where content will be imported
  4. Create an entry and fill out the unique identifier + add some content to the matrix field
  5. Create a feed me import
  6. Map the text field for import and mark it as unique identifier
  7. DON'T map the matrix field
  8. Run import
  9. Matrix field's content is gone

Additional info

i-just commented 1 year ago

Hi, thanks for getting in touch. Could you please clarify which version of Craft CMS this is occurring on? You’ve listed 3.7.62 but then have 3.7.28 under Plugins & versions. Also, which version of Feed me is this happening on?

maxpdesign commented 1 year ago

@i-just Hi, I edited my previous comment so the correct info about the plugins é versions are included. I was working on multiple projects at once and pasted the wrong info.

The version of Craft CMS is 3.7.62 and the Feed Me version is 4.5.3

i-just commented 1 year ago

Thanks! I’m still unable to reproduce this error. Would you please be able to send your database export, composer.lock and composer.json, to support@craftcms.com so that we can dig deeper?