mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
correcting error in advanced filter
This commit is contained in:
parent
558539e21b
commit
6a154ee9b0
1 changed files with 2 additions and 2 deletions
|
|
@ -224,7 +224,7 @@ class AdvancedFilter {
|
||||||
{
|
{
|
||||||
const field = commands[i - 1].cmd;
|
const field = commands[i - 1].cmd;
|
||||||
const str = 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, 1);
|
||||||
commands.splice(i, 1);
|
commands.splice(i, 1);
|
||||||
//changed = true;
|
//changed = true;
|
||||||
|
|
@ -236,7 +236,7 @@ class AdvancedFilter {
|
||||||
{
|
{
|
||||||
const field = commands[i - 1].cmd;
|
const field = commands[i - 1].cmd;
|
||||||
const str = 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, 1);
|
||||||
commands.splice(i, 1);
|
commands.splice(i, 1);
|
||||||
//changed = true;
|
//changed = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue