-
Notifications
You must be signed in to change notification settings - Fork 139
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
Importing multiple child entries into an Entries field uses first child's field values for all remaining children #1227
Comments
Hi, thanks for getting in touch. The issue is likely to do with how your feed data is formatted.
but if I switch to:
then the inner element fields are mapped correctly. One more thing to mention is that, in this case, keeping all fields you want to map in the feed is important. If I was to remove I hope this helps you. I’m going to go ahead and close this, but please feel free to reply if you have any further questions. |
Thanks for the reply Iwona. But with this change I am still encountering the bug, and I think it's because we're not quite testing the same thing. My fault, since I realize now I failed to clarify my setup in my initial report. My "authors" field is not an Entries field, but a Matrix field. Within that Matrix field is a block type which then contains an Entries field and an additional "Role" field (dropdown). This is why I structured my JSON in this manner:
But even if I remove that extra object layer (which I can, because I'm only associating one author entry inside each block), the duplication of the field values form the first Matrix block remains. Example JSON:
|
Right, sorry, looks like I got confused somewhere along the way. Reopening. And thank you for the example json! |
Resolved in #1278 for the next FeedMe v4 and v5 release. |
Description
When importing into an Entries field (creating child entries), the mapped Title for each element is correctly saved, but the additional fields (in my case, simple text fields) are not, instead saving the first child entry's data to those fields in all subsequent children.
Of note, the primary element I am importing is a Commerce Product, and the Entries field in question is assigned to that product type.
Field Mapping:
Field Result:
(Titles are correct.)
Content Result:
(2nd and 3rd fields are incorrect.)
Additional info
The text was updated successfully, but these errors were encountered: