fix: customer language mapping#182
Conversation
|
Malte Janz (@MalteJanz) I'm not fully sure whether the previous "LanguageLookup only, no mapping lookup" behavior was intentional? |
|
Lars Kemper (@larskemper) just saw your question, but a late answer is still better than no answer I guess ✌️ 🙈
No I don't think that was intentional and we likely overlooked that we have to do both in most places 😬 |
Makes sense, thanks. Not sure either whether languages are the only affected case, so we should probably take a look at the other LookupServices as well. |
resolves #SWAG-327674 support ticket
Problem
Fixes a Shopware 5 customer migration issue where
languageIdcould be missing even though the customer locale was already known in the same migration run.CustomerConverterresolved the customer language only throughLanguageLookup, which checks existing SW6 language entities. In affected runs, a language mapping for the locale already existed, but the targetlanguageentity had not been persisted yet. That leftlanguageIdunset.Changes
LanguageLookupCustomerConverterto use this helper forcustomerlanguage.locale