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

Livetable multi value filter only matches first value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 14.3.1
    • Fix Version/s: None
    • Component/s: LiveTable
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              Created:
              Updated: