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

Structure field types are not sorted correctly in the Asset Publisher

    Details

      Description

      Structure field types are not sorted correctly in the Asset Publisher.

      Steps

      1. Go to Admin > Site Administration > Content > Web Content > Manage > Structures
      2. Add a new structure with a Text Box, Boolean, Number, Integer, and Text field
      3. Go to Admin > Site Administration > Content > Web Content > Manage > Templates
      4. Add a new template that is linked to the structure created earlier and lists all the values, similar to this:
        ${Text_Box1686.getData()}
        ${Boolean1946.getData()}
        ${Number2186.getData()}
        ${Integer2428.getData()}
        ${Text2511.getData()}
        
      5. Go to Admin > Site Administration > Content > Web Content > Add and choose the structure created in step 4
      6. Add several new web content articles with the following values in order:
        A, checked, 1.1, 1, A
        D, unchecked, 1.4, 4, D
        B, unchecked, 1.2, 2, B
        E, checked, 1.5, 5, E
        C, checked, 1.3, 3, C
      7. Add an Asset Publisher to a page
      8. Go to Asset Publisher > Configuration > Asset Type
      9. Select Web Content Article, then the structure created earlier
      10. Go to Asset Publisher > Configuration > Ordering and Grouping
      11. For each filed in the structure created earlier, test ascending and descending values

      Expected
      All of the different types of fields should sort correctly
      Result
      Text, Boolean, and Number fields do not sort correctly

        Attachments

        1. 6.2.x-failed-4.3.PNG
          6.2.x-failed-4.3.PNG
          6 kB
        2. 6.2.x-failed-4.4.PNG
          6.2.x-failed-4.4.PNG
          11 kB
        3. fixed-1.1.PNG
          fixed-1.1.PNG
          8 kB
        4. fixed-1.2.PNG
          fixed-1.2.PNG
          5 kB
        5. fixed-2.1.PNG
          fixed-2.1.PNG
          8 kB
        6. fixed-2.2.PNG
          fixed-2.2.PNG
          6 kB
        7. fixed-3.1.PNG
          fixed-3.1.PNG
          8 kB
        8. fixed-3.2.PNG
          fixed-3.2.PNG
          5 kB
        9. reproduced-1.1.PNG
          reproduced-1.1.PNG
          8 kB
        10. reproduced-1.2.PNG
          reproduced-1.2.PNG
          5 kB
        11. reproduced-2.1.PNG
          reproduced-2.1.PNG
          8 kB
        12. reproduced-2.2.PNG
          reproduced-2.2.PNG
          5 kB
        13. reproduced-3.1.PNG
          reproduced-3.1.PNG
          8 kB
        14. reproduced-3.2.PNG
          reproduced-3.2.PNG
          6 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 48 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M4