<
From version < 4.1 >
edited by Thomas Mistelbauer
on 2020/04/08 06:58
To version < 6.1
edited by Thomas Mistelbauer
on 2021/12/13 06:26
Change comment: Migrated property [priority] from class [XWiki.WikiMacroClass]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -6,7 +6,7 @@
6 6   ## 100 documents displayed by default if no value is specified
7 7   #set ($limit = '100')
8 8   #end
9 - #set ($limit = $mathtool.toInteger($limit))
9 + #set ($limit = $numbertool.toNumber($limit).intValue())
10 10   ## Compute the XWQL portion related to sorting, based on the passed "sort" parameter
11 11   ## Valid values are "creationDate", "modificationDate" and "docName"
12 12   #set ($sort = $xcontext.macro.params.get('sort'))