0 Votes

Changes for page IncidentGallery

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

From version 2.14
edited by Ryan C
on 2025/07/17 05:04
Change comment: There is no comment for this version
To version 2.15
edited by Ryan C
on 2025/07/17 05:05
Change comment: There is no comment for this version

Summary

Details

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