diff --git a/server/handlers/list.js b/server/handlers/list.js index c05c2d3d..edb65b7e 100644 --- a/server/handlers/list.js +++ b/server/handlers/list.js @@ -158,6 +158,7 @@ function skip(list, guid, coll, offline, socket) { socket.emit('update_required', result); return; } + list.id = list.id + ""; Functions.getSessionAdminUser(Functions.getSession(socket), coll, function(userpass, adminpass) { if(adminpass != "" || list.pass == undefined) { list.pass = adminpass; @@ -592,6 +593,8 @@ function end(obj, coll, guid, offline, socket) { socket.emit("update_required", result); return; } + obj.id = obj.id + ""; + id = id + ""; var callback_function = function() { for(var i = 0; i < arguments.length; i++) { if(typeof(arguments[i]) == "function") { diff --git a/server/handlers/list_change.js b/server/handlers/list_change.js index 591ffb34..d0acdfc9 100644 --- a/server/handlers/list_change.js +++ b/server/handlers/list_change.js @@ -507,7 +507,7 @@ function add_function(arr, coll, guid, offline, socket) { function voteUndecided(msg, coll, guid, offline, socket) { var socketid = socket.zoff_id; if(typeof(msg) === 'object' && msg !== undefined && msg !== null){ - + if(msg.hasOwnProperty("id")) msg.id = msg.id + ""; if(!msg.hasOwnProperty("channel") || !msg.hasOwnProperty("id") || !msg.hasOwnProperty("type") || typeof(msg.channel) != "string" || typeof(msg.id) != "string" || typeof(msg.type) != "string") {