From 1026acddc82b1c40b02d8c4db345daff8600b8a5 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Wed, 24 Apr 2019 14:26:04 +0200 Subject: [PATCH] before updating ToU fetch users from server --- CHANGELOG | 2 ++ frontend-js/src/main/js/ServerConnector.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 67dec5e3a2..f7e5859182 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,8 @@ minerva (12.2.3) stable; urgency=medium * Bug fix: remove button is disabled after starting removing of the data overlay (#791) * Bug fix: search autocomplete hint could be initially hidden (#793) + * Bug fix: updating terms of use could crash when list of users was removed + in separate tab or by another user (#797) -- Piotr Gawron <piotr.gawron@uni.lu> Wed, 24 Apr 2019 17:00:00 +0200 diff --git a/frontend-js/src/main/js/ServerConnector.js b/frontend-js/src/main/js/ServerConnector.js index a7389db08b..c19e048cb6 100644 --- a/frontend-js/src/main/js/ServerConnector.js +++ b/frontend-js/src/main/js/ServerConnector.js @@ -1340,7 +1340,7 @@ ServerConnector.updateUser = function (user) { */ ServerConnector.resetUserTos = function () { var self = this; - return self.getUsers().then(function (users) { + return self.getUsers(true).then(function (users) { var promises = []; for (var i = 0; i < users.length; i++) { var user = users[i]; -- GitLab