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

If a collectionKey for a contributed fragment is not available, it will display the pre-fix used in Language.properties used to translate the label

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: WCM > Fragments
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Description
      "fragment.collection.label" is appended to getCollectionKey() in any fragmentRenderer implementation in order to translate a language key for the contributed fragment if created.
      However if the language key does not exist, it does not make sense to have the "fragment.collection.label" appended still. The rest of liferay-portal will display the language key if it does not exist, and we should keep it consistent with contributed fragments. This will affect companies that want contributed fragments, but do not want to yet localize their sites.

      Steps to Reproduce

      1. Create a contributed fragment by implementing the fragmentRenderer interface and return a string in getCollectionKey with an invalid Language Key.
      2. Deploy the contributed fragment
      3. Add the contributed fragment to a content page / layout page template / display page

      Expected Result
      Because the language key is not found, the language key itself is displayed

      Actual Result
      The language key with the suffix fragment.collection.label is displayed

      Tested on Tomcat 9.0.10 + MySQL 5.7
      Portal master GIT ID: 9c621af747a29b48a5afcfdc3276527b6e599eb9

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package