diff options
author | IgnatzHome <ignatz@maschath.de> | 2018-05-19 21:42:11 +0200 |
---|---|---|
committer | IgnatzHome <ignatz@maschath.de> | 2018-05-19 21:42:11 +0200 |
commit | 17fcfd36973125bec369b5e74d9db092e0d8b7e0 (patch) | |
tree | f78834e09dbf650c82c283215660a6f743e7d20b /client | |
parent | 811ccf0f102ce4b82efa2136a387e4c9e6b94456 (diff) | |
download | wekan-17fcfd36973125bec369b5e74d9db092e0d8b7e0.tar.gz wekan-17fcfd36973125bec369b5e74d9db092e0d8b7e0.tar.bz2 wekan-17fcfd36973125bec369b5e74d9db092e0d8b7e0.zip |
correcting _fieldNameToId(field);
Diffstat (limited to 'client')
-rw-r--r-- | client/lib/filter.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/lib/filter.js b/client/lib/filter.js index 854ff446..2079d99a 100644 --- a/client/lib/filter.js +++ b/client/lib/filter.js @@ -145,9 +145,9 @@ class AdvancedFilter { return commands; } - _fieldNameToId(name) + _fieldNameToId(field) { - CustomFields.find({name})._id; + CustomFields.find({'name':field})[0]._id; } _arrayToSelector(commands) |