Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5054

PropertyClass.getListValues() api should return list values in the order specified by the ListClass

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.3 RC1
    • 2.3 M1
    • {Unused} Core
    • None
    • Unit
    • Easy

    Description

      The PropertyClass.java public api getListValues() which is used by LiveTables (for instance) is not returning the List Values ordered when the DBListClass or StaticListClass is specifying an order.

      http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/PropertyClass.java

      To reproduce:

      1/ Use a StaticList with values not ordered and with "select" mode
      2/ Specific order by "id"
      3/ Put $xwiki.getDocument("MySpace.MyClass").getxWikiClass().get("myproperty").getListValues()
      4/ Use the field in an object

      The result from 3 won't be ordered while the select in 4/ will be ordered

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: