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

JournalArticle.defaultLanguageId can be incorrectly assigned when coming from 6.0

    Details

      Description

      Web contents in 6.0 where created without title field internationalized. It wasn't until LPS-5906 that we changed this behavior, but if the record wasn't created with the field internationalized we're not updating it.

      Meanwhile in UpgradeJournalArticleLocalizedValues.updateJournalArticleDefaultLanguageId we're using the title default language id to assign the article default language id, but because of the former fact, and the point that the JournalArticle.content field was internationalized before, we should better rely on it.

       

      Steps to Reproduce:

      1. In 6.0 create a web content with Spanish as default language, its content translated and with any title.
      2. Perform an upgrade to master/7.1 (upgrade first to 6.2 and then to 7.1/master)

       

      Expected Result:
      The article's defaultLanguageId field should be Spanish

      Actual Result:
      English is selected as the defaultLanguageId value.

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  39 weeks ago

                  Packages

                  Version Package
                  7.1.10 DXP FP8
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master