Explorar el Código

correcting _fieldNameToId(field);

IgnatzHome hace 7 años
padre
commit
17fcfd3697
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      client/lib/filter.js

+ 2 - 2
client/lib/filter.js

@@ -145,9 +145,9 @@ class AdvancedFilter {
     return commands;
     return commands;
   }
   }
 
 
-  _fieldNameToId(name)
+  _fieldNameToId(field)
   {
   {
-    CustomFields.find({name})._id;
+    CustomFields.find({'name':field})[0]._id;
   }
   }
 
 
   _arrayToSelector(commands)
   _arrayToSelector(commands)