Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-130342

Repeatable fields translations not managed correctly

    Details

      Description

      This is not reproducible in 7.3.x.

      Steps to reproduce:

      1. Create a new structure with a repeatable and localizable text field.
      2. Add the template associated to the previous structure.
      3. Add a new web content based on the text structure:
        1. Add a value ('hello') for the English translation.
        2. Change language to Spanish.
        3. Add a new text field and fill it with some content ('que tal').
      4. Save the web content.
      5. 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>
      

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thais.frota Thais Frota (Inactive)
              Reporter:
              cristina.rodriguez Cristina Rodriguez
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Marcos Martins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 7 weeks, 6 days ago

                  Packages

                  Version Package
                  7.4.1 CE GA2 DXP 7,4
                  7.4.13 DXP GA1
                  Master