"Prefix" does not save when switching between "Languages" for a User
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- When editing the "Language" selection for a User the "Prefix" does not always save the pre-selected response.
- Example:
- Set the "Prefix" to "Mr" and "Language" to "English" for a User and click Save.
- Change the "Language": "English" to another language where "Mr" is not the same (France is "M"), the pre-selected equivalent does not save and the "Prefix" category is left blank.
Environment
- DXP 7.0+
- Quarterly Release
Resolution
- Unfortunately, automatic conversions for prefixes are not an option because the prefix may not be the same between different languages and/or the prefix may exist in another language but does not exist in a different language.
- There is a workaround that can be enabled if the interchanging of prefixes in other languages is necessary.
- You can add a modelListener to the User creation and/or update the prefix information by getting the language key of the prefix for the different languages.
Did this article resolve your issue ?