When importing items with multiple languages, only the last translation stays

Created on 25 May 2023, over 1 year ago
Updated 30 May 2023, over 1 year ago

Steps to reproduce

1. Create Feed using CSV as source
2. Map columns to values, including langcode (see screenshot)
3. Run import.

In theory there should be one node with 4 translations but instead I get one node with the last translation processed (using my example, the Spanish version). If I run the step by step debugging, I see that the node is created and then updated 3 times and every time only has one translation: the one from that step.

I suppose this has to do with EntityProcessorBase.php but I can't find the actual issue. This might be related with the solutions from 🐛 Setting a target for "langcode" field will sometimes throw "this field cannot hold more than 1 values" Needs work since I have that patch applied.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇵🇹Portugal lamelas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024