From 256ca129f0301765ce1b2522c9e4aef68eda9e8c Mon Sep 17 00:00:00 2001 From: IgnatzHome Date: Sun, 20 May 2018 14:03:48 +0200 Subject: Correcting not Filter --- client/lib/filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/lib/filter.js') diff --git a/client/lib/filter.js b/client/lib/filter.js index 73a0da99..18d95ebd 100644 --- a/client/lib/filter.js +++ b/client/lib/filter.js @@ -243,7 +243,7 @@ class AdvancedFilter { { const field = commands[i-1].cmd; const str = commands[i+1].cmd; - commands[i] = {$not: {'customFields._id':this._fieldNameToId(field), 'customFields.value':str}}; + commands[i] = {'customFields._id':this._fieldNameToId(field), 'customFields.value': { $not: str }}; commands.splice(i-1, 1); commands.splice(i, 1); //changed = true; -- cgit v1.2.3-1-g7c22