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

Asset publisher displays wrong number order for web content after partial field translation

    Details

      Description

      Description:
      Asset publisher is displaying wrong order after partial or no translation of web content fields.

      Steps to reproduce:

      1. Use English as default language then go to Control Panel ->  Content & Data -> Web Content -> Structures 
      2. Create a new structure that has one HTML field and another Number field 
      3. Go to Web content tab and create from the previous created structure three new web contents 
      4. Create a first content in the default language (en_US) with these values:
        1. Number: 1
        2. Text: Hello 1
        3. Spanish translation, with the same title, number, and the text will be "Hola 1".
      5. Create a second content in the default language (en_US) with these values:
        1. Number: 2
        2. Text: Hello 2
        3. We don't add any translation here.
      6. Create a third content in the default language (en_US) with these values:
        1. Number: 3
        2. Text: Hello 3
        3. Spanish translation, with the same title, number, and the text will be "Hola 3".
      7. We deploy a widget Asset Publisher on our welcome page and configure it to show only the contents of that structure: Asset Publisher -> Configuration -> Setup -> Asset Selection -> Asset Type: Web Content Article -> Web Content Article Structures: select the structure created in point 2.
      8. Configure Asset Publisher to sort by "number" field: Configuration -> Ordering -> Order by: number. 

       Expected behavior
      The order should be maintained if language is changed and translation exists.

       Actual behavior

      • We display the page in the default language, English => The order is: 3, 2, 1.
      • We display the page in Spanish (translation available for field 3 and 1)=> The order is 3, 1, 2.
      • We display the page in French (no translation available) => The order is 1, 2, 3.

        Attachments

          Activity

            People

            Assignee:
            georgel.pop Georgel Vasile Pop
            Reporter:
            georgel.pop Georgel Vasile Pop
            Participants of an Issue:
            Recent user:
            Hong Zhao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              14 weeks ago

                Packages

                Version Package