-
Type:
Bug
-
Status: Verified
-
Resolution: Unresolved
-
Affects Version/s: 6.2.X EE
-
Fix Version/s: None
-
Component/s: Dynamic Data Mapping
-
Labels:
-
Fix Priority:3
-
Git Pull Request:
7.0.x and master works fine: see comment https://issues.liferay.com/browse/LPS-57252?focusedCommentId=705674&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-705674
In 6.2.x bug is reproduced
If a new DM documents that has DDM localizable fields is created, the default locale for these DDM fields will be set to the editor's locale. If another user edits the same DM document then the default locale of its DDM fields will be set to this user's locale.
Steps to reproduce:
- Log in as administrator.
- Create a new document type DT1 with this information:
<root available-locales="en_US" default-locale="en_US"> <dynamic-element dataType="html" fieldNamespace="ddm" indexType="keyword" localizable="true" name="HTML2094" readOnly="false" repeatable="false" required="false" showLabel="true" type="ddm-text-html" width="small"> <meta-data locale="en_US"> <entry name="label"> <![CDATA]> </entry> <entry name="predefinedValue"> <![CDATA[]]> </entry> <entry name="tip"> <![CDATA[]]> </entry> </meta-data> </dynamic-element> </root>
- Change Display Language of administrator to es_ES.
- Add a document based on document type DT1 setting its DDM field value to "test language".
- Change Display Language of administrator to fr_FR.
- Edit the previous DM document.
Actual result:
Column xml of DDMContent table has the following value:
<?xml version="1.0"?> <root> <dynamic-element default-language-id="fr_FR" name="HTML2094"> <dynamic-content language-id="es_ES"><![CDATA[test language]]></dynamic-content> <dynamic-content language-id="fr_FR"><![CDATA[test language]]></dynamic-content> </dynamic-element> <dynamic-element default-language-id="es_ES" name="_fieldsDisplay"> <dynamic-content language-id="es_ES"><![CDATA[HTML2094_INSTANCE_wzwl]]></dynamic-content> </dynamic-element> </root>
Expected result:
Column xml of DDMContent table has the following value:
<?xml version="1.0"?> <root> <dynamic-element default-language-id="es_ES" name="HTML2094"> <dynamic-content language-id="es_ES"><![CDATA[test language]]></dynamic-content> <dynamic-content language-id="fr_FR"><![CDATA[test language]]></dynamic-content> </dynamic-element> <dynamic-element default-language-id="es_ES" name="_fieldsDisplay"> <dynamic-content language-id="es_ES"><![CDATA[HTML2094_INSTANCE_wzwl]]></dynamic-content> </dynamic-element> </root>
- relates
-
LPS-54254 Document metadata empty when changing default language of the portal or creating a site with non default language
- Closed