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

Published translated web content that is the same as the default one is not saved

    Details

      Description

      Adding a translation to a Web Content and publishing it without any change, the translation will not be saved in the database.

      The issue is not reproducible on master due to the field functionality being moved to Data Engine.

      Reproduction Steps:

      1. Start a 7.3 bundle
      2. Go to Content & Data --> Web Content --> add a basic web content then publish.
      3. Edit the created web content and add a translation to the Content field without changing the text. So the translation should be the same as the default one. Publish the article.
      4. Edit the article again and check its ID and check in the database the content.

      Actual Result: The translation is not saved. Only the default content is available: 

      <?xml version="1.0"?>
      <root available-locales="en_US" default-locale="en_US">
       <dynamic-element name="content" type="text_area" index-type="text" instance-id="efsmzdmq">
       <dynamic-content language-id="en_US"><![CDATA[<p>Test</p>]]></dynamic-content>
       </dynamic-element>
       </root>
      

       Expected Result: The translation should be saved in the database. It should look like: 

      <?xml version="1.0"?>
      <root available-locales="fi_FI,en_EN" default-locale="en_EN" version="1.0">
       <dynamic-element index-type="text" instance-id="UqP30E4d" name="content" type="rich_text">
       <dynamic-content language-id="fi_FI"><![CDATA[<p>Test</p>]]></dynamic-content>
       <dynamic-content language-id="en_EN"><![CDATA[<p>Test</p>]]></dynamic-content>
       </dynamic-element>
       </root>
      

        Attachments

          Activity

            People

            Assignee:
            sylvia.luan Sylvia Luan
            Reporter:
            istvan.dezsi Istvan Dezsi
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Istvan Dezsi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              17 weeks, 6 days ago

                Packages

                Version Package
                7.2.10 DXP FP14
                7.2.10.5 DXP SP5
                7.2.X
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X