Commit 3c5703d5 authored by ujvari's avatar ujvari Committed by Gergely Ujvari

Unbroke _arrayMatches

parent 4363e559
......@@ -398,10 +398,10 @@ class ViewFilter
_arrayMatches: (filter, value, match) ->
matches = true
# Make copy for filtering
copy = value.slice()
copy = filter.terms.slice()
copy = copy.filter (e) ->
match filter.terms, e
match value, e
if (filter.operator is 'and' and copy.length < filter.terms.length) or
(filter.operator is 'or' and not copy.length)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment