From 9f5f4a4d5287b3240f3f905d6e3db65b016d5805 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 20 Apr 2020 15:38:27 +0200 Subject: [PATCH] Fix possible duplicate author id --- www/code/markers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/code/markers.js b/www/code/markers.js index 74541cf4a..125fe82ed 100644 --- a/www/code/markers.js +++ b/www/code/markers.js @@ -623,7 +623,7 @@ define([ return n; }; var getAuthorId = function (Env) { - var existing = Object.keys(Env.authormarks.authors || {}); + var existing = Object.keys(Env.authormarks.authors || {}).map(Number); if (!Env.common.isLoggedIn()) { return authorUid(existing); } var userData = Env.common.getMetadataMgr().getUserData();