diff --git a/src/database/mongo.js b/src/database/mongo.js index e6b3050b08..f568f3d514 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -294,6 +294,10 @@ }; module.getObjectField = function(key, field, callback) { + if(typeof field !== 'string') { + field = field.toString(); + } + field = field.replace(/\./g, '\uff0E'); module.getObjectFields(key, [field], function(err, data) { if(err) { return callback(err); @@ -307,11 +311,12 @@ var _fields = {}; for(var i=0; i