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

Webcontent store in en_US instead of Default site language

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.1.1 CE GA2, 7.1.2 CE GA3
    • Fix Version/s: None
    • Component/s: Dynamic Data Mapping
    • Labels:
      None
    • Fix Priority:
      4

      Description

      1) Create a website "Test" with "Blank Site" site Template

      2) Go to the site "Test"

      3) In Configuration > Site settings > Languages

      For the field :

      • Define a custom default language and additional available languages for this site
        = Dutch (Netherlands)

       

      • Available Languages - Current
        Dutch (Netherlands)
        French (France)

       

      • Available Languages
        All other languages

       

      4) In web Content > Structures

      Create a Structure "Test Structure" with a text box field

      5) In web Content > Templates
      Create a Template associate to the Structure "Test Structure"

      5) In web Content > Webcontent
      Create new content from the structure "Test Structure" (The default language is nl_NL, and we have fr_FR also proposed)
      Save the content

      6) In SQL Database, retrieve the last item in journalarticle table

      (SELECT content FROM psa_lfr_portal.journalarticle ORDER BY id_ DESC LIMIT 1)

      7) In field content in the SQL table

      Actual
      <?xml version="1.0"?>

      <root available-locales="en_US" default-locale="nl_NL">
      <dynamic-element name="HTMLim0r" type="text_area" index-type="text" instance-id="iyae">
      <dynamic-content language-id="en_US"><![CDATA[<p>test</p>]]></dynamic-content>
      </dynamic-element>
      </root>

      Expected

      <?xml version="1.0"?>

      <root available-locales="nl_NL" default-locale="nl_NL">
      <dynamic-element name="HTMLim0r" type="text_area" index-type="text" instance-id="iyae">
      <dynamic-content language-id="nl_NL"><![CDATA[<p>test</p>]]></dynamic-content>
      </dynamic-element>
      </root>

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  30 weeks, 1 day ago

                  Packages

                  Version Package