Browse Source

correcting _fieldNameToId(field);

IgnatzHome 7 years ago
parent
commit
17fcfd3697
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/lib/filter.js

+ 2 - 2
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)