Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
If you use file field with entity translations enabled, you are able to have different files attached to an entity depending on language.
But during the file import the ":language" mapping for file field is ignored and default language is always used.
After some digging into migrate code, I found out that inside MigrateFileFieldBaseHandler->prepare() language is always set to default one, the one returned by $this->getFieldLanguage() even if we have it set into arguments.
I made a patch that checks if language argument is set and use that language instead of default one.
Comment | File | Size | Author |
---|---|---|---|
migrate-file-language-arguments.patch | 1.04 KB | Luxian | |
Comments
Comment #2
mikeryanCommitted, thanks!
Comment #3
mikeryan