summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-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)