summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnatzHome <ignatz@maschath.de>2018-05-19 21:54:20 +0200
committerIgnatzHome <ignatz@maschath.de>2018-05-19 21:54:20 +0200
commit382b14ea275deb94c0f2f8d5564e050b034aca8b (patch)
treed01e85b7c47fe15cde5e830a91abd3b1336e0e73
parent17fcfd36973125bec369b5e74d9db092e0d8b7e0 (diff)
downloadwekan-382b14ea275deb94c0f2f8d5564e050b034aca8b.tar.gz
wekan-382b14ea275deb94c0f2f8d5564e050b034aca8b.tar.bz2
wekan-382b14ea275deb94c0f2f8d5564e050b034aca8b.zip
debugging _fieldNameToId
-rw-r--r--client/lib/filter.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/lib/filter.js b/client/lib/filter.js
index 2079d99a..970aedea 100644
--- a/client/lib/filter.js
+++ b/client/lib/filter.js
@@ -147,7 +147,10 @@ class AdvancedFilter {
_fieldNameToId(field)
{
- CustomFields.find({'name':field})[0]._id;
+ console.log("searching: "+field);
+ const found = CustomFields.find({'name':field});
+ console.log(found);
+ return found._id;
}
_arrayToSelector(commands)