-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.4.1 CE GA2, 7.4.13 DXP GA1, Master
-
Component/s: Data Engine
-
Labels:
-
Fix Priority:3
-
Last Working Version:
-
Sprint:Data_Engine_7.4_10
-
Git Pull Request:
This is not reproducible in 7.3.x.
Steps to reproduce:
- Create a new structure with a repeatable and localizable text field.
- Add the template associated to the previous structure.
- Add a new web content based on the text structure:
- Add a value ('hello') for the English translation.
- Change language to Spanish.
- Add a new text field and fill it with some content ('que tal').
- Save the web content.
- Edit the web content and swith between English and Spanish to see the values.
Expected result:
- English: you can see one text field: 'hello'
- Spanish: you can see two text fields: 'hello' and 'que tal'
Current result:
- English: you can see one text field: 'hello'
- Spanish: you can see only one text field: 'que tal'
You can see in the content source that for Spanish translation:
- First field content is replaced by the second one instead of keeping its the default English value.
- Second field values are empty.
<?xml version="1.0"?> <root available-locales="es_ES,en_US" default-locale="en_US" version="1.0"> <dynamic-element index-type="keyword" instance-id="YHzF2RZH" name="Text69778719" type="text"> <dynamic-content language-id="es_ES"><![CDATA[que tal]]></dynamic-content> <dynamic-content language-id="en_US"><![CDATA[hello]]></dynamic-content> </dynamic-element> <dynamic-element index-type="keyword" instance-id="qiqf9yqy" name="Text69778719" type="text"> <dynamic-content language-id="es_ES"><![CDATA[]]></dynamic-content> <dynamic-content language-id="en_US"><![CDATA[]]></dynamic-content> </dynamic-element> </root>
And this is the (correct) source generated in 7.3.x for the same case:
<?xml version="1.0"?> <root available-locales="es_ES,en_US" default-locale="en_US"> <dynamic-element name="Text3ukl" type="text" index-type="keyword" instance-id="zhbf"> <dynamic-content language-id="es_ES"><![CDATA[hello]]></dynamic-content> <dynamic-content language-id="en_US"><![CDATA[hello]]></dynamic-content> </dynamic-element> <dynamic-element name="Text3ukl" type="text" index-type="keyword" instance-id="rwpj"> <dynamic-content language-id="es_ES"><![CDATA[que tal]]></dynamic-content> <dynamic-content language-id="en_US"><![CDATA[]]></dynamic-content> </dynamic-element> </root>
- is related to
-
LPS-128686 Translation is lost when default translation is not filled
- Closed