From 46a5007a5d5e19860b3679051b16796e03737c75 Mon Sep 17 00:00:00 2001 From: Asma Jamil Date: Thu, 12 Oct 2023 14:10:26 +0300 Subject: [PATCH] Change null to mdash on empty student ids in the All results table Fixes #1272 --- exercise/static/exercise/results_staff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercise/static/exercise/results_staff.js b/exercise/static/exercise/results_staff.js index 0d97b29b5..c7a21b75c 100644 --- a/exercise/static/exercise/results_staff.js +++ b/exercise/static/exercise/results_staff.js @@ -1175,7 +1175,7 @@ function renderParticipantLink(data, type, row) { // TODO: Get the link to students in a proper way const link = $('li.menu-participants').find('a').attr('href'); - return (row['UserID'] > 0 ? '' + data + '' : ''); + return (row['UserID'] > 0 ? '' + (!data ? '—' : data) + '' : ''); } let columns = [