-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.1.X, 7.2.X, Master
-
Fix Version/s: 7.1.10 DXP FP13, 7.1.X, 7.2.10 DXP FP1, 7.2.1 CE GA2, 7.2.X, 7.3.10 DXP GA1, Master
-
Component/s: ~[Archived] WCM
-
Branch Version/s:7.2.x, 7.1.x
-
Backported to Branch:Committed
-
Fix Priority:2
-
Git Pull Request:
Translated webcontent fields with a invalid language are copied to default "en_US" translation in case you edit it.
That can be caused if you remove a language from enabled locales, or you upgrade from a old Liferay version that contains language-id="false" as a language.
Steps to reproduce
- Create a basic webcontent
- Add title and content in Spanish (es_ES) and Dutch (nl_NL) use title_es, content_es, title_nl and content_nl
- Go to instance settings => language configuration
- Remove Dutch (nl_NL)
- Shutdown Liferay
- Add following key in portal-ext.properties
locales=ca_ES,zh_CN,en_US,fi_FI,fr_FR,de_DE,iw_IL,ja_JP,pt_BR,es_ES
- Start Liferay
- Edit again the basic webcontent created in first step
- Expected behavior: only Spanish translation is available in webcontent
- Wrong behavior: Spanish and English translation are available in webcontent. English translation is a copy of the original Dutch translation
- Expected behavior: only Spanish translation is available in webcontent