Details
-
Improvement
-
Resolution: Fixed
-
Major
-
2.3 M1
-
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.
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