summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorIgnatz <computer-freak94@gmx.de>2018-06-14 12:56:29 +0200
committerIgnatz <computer-freak94@gmx.de>2018-06-14 12:56:29 +0200
commit6a154ee9b0a7a6b3239813404538a5a9934228e4 (patch)
treeca8d67ead423ffad373b16730a53efa108c6bc9b /client
parent558539e21ba377ae979221e50eb6587132208c8d (diff)
downloadwekan-6a154ee9b0a7a6b3239813404538a5a9934228e4.tar.gz
wekan-6a154ee9b0a7a6b3239813404538a5a9934228e4.tar.bz2
wekan-6a154ee9b0a7a6b3239813404538a5a9934228e4.zip
correcting error in advanced filter
Diffstat (limited to 'client')
-rw-r--r--client/lib/filter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/lib/filter.js b/client/lib/filter.js
index 1ea67f4b..ea1811de 100644
--- a/client/lib/filter.js
+++ b/client/lib/filter.js
@@ -224,7 +224,7 @@ class AdvancedFilter {
{
const field = commands[i - 1].cmd;
const str = commands[i + 1].cmd;
- commands[i] = { 'customFields._id': this._fieldNameToId(field), 'customFields.value': {$in: [this._fieldValueToId(str), parseInt(str, 10)]} };
+ commands[i] = { 'customFields._id': this._fieldNameToId(field), 'customFields.value': {$in: [this._fieldValueToId(field, str), parseInt(str, 10)]} };
commands.splice(i - 1, 1);
commands.splice(i, 1);
//changed = true;
@@ -236,7 +236,7 @@ class AdvancedFilter {
{
const field = commands[i - 1].cmd;
const str = commands[i + 1].cmd;
- commands[i] = { 'customFields._id': this._fieldNameToId(field), 'customFields.value': { $not: {$in: [this._fieldValueToId(str), parseInt(str, 10)]} } };
+ commands[i] = { 'customFields._id': this._fieldNameToId(field), 'customFields.value': { $not: {$in: [this._fieldValueToId(field, str), parseInt(str, 10)]} } };
commands.splice(i - 1, 1);
commands.splice(i, 1);
//changed = true;