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

Livetable multi value filter only matches first value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.3.1
    • LiveTable
    • None
    • Unknown

    Description

      The following patch for XWiki.LiveTableResultsMacro seems to fix the issue:

      @@ -951,7 +951,9 @@
         #set ($filterValuesByMatchType = {})
         #foreach ($matchType in $matchTypes)
           #set ($discard = $filterValuesByMatchType.putIfAbsent($matchType, []))
      -    #set ($discard = $filterValuesByMatchType.get($matchType).add($filterValues.get($foreach.index)))
      +    #foreach ($fv in $filterValues)
      +      #set ($discard = $filterValuesByMatchType.get($matchType).add($fv))
      +    #end
         #end
       #end

      Attachments

        Activity

          People

            Unassigned Unassigned
            aj Andreas Jonsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: