0 Votes

Changes for page IncidentGallery

Last modified by Ryan C on 2025/07/17 06:41

From version 2.4
edited by Ryan C
on 2025/07/17 04:59
Change comment: There is no comment for this version
To version 2.5
edited by Ryan C
on 2025/07/17 05:00
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,7 +1,8 @@
1 1  {{groovy bindings="tags,max"}}
2 -def includeTags = tags?.split(',')*.trim()*.toLowerCase() ?: []
3 -def maxCount = max?.toInteger() ?: 999
2 +def includeTags = (context.macro.params.tags ?: "").split(',')*.trim()*.toLowerCase().findAll { it } // removes blanks
3 +def maxCount = context.macro.params.max?.toInteger() ?: 999
4 4  
5 +
5 5  def hql = """
6 6   select doc.fullName
7 7   from XWikiDocument doc, BaseObject obj