From d82338cc595a9e4861bd6f54c610041875a8ac26 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Tue, 19 May 2026 15:55:48 -0500 Subject: [PATCH] Fix the test nav. I used the wrong thing in #2975. --- lib/WeBWorK/ContentGenerator/GatewayQuiz.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm b/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm index f23b9656d5..a939a494f6 100644 --- a/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm +++ b/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm @@ -1378,7 +1378,7 @@ sub nav ($c, $args) { # Find all versions of this set that have been taken (excluding those taken by the current user). my @userVersions = $db->listSetVersionsWhere({ user_id => { '!=' => $userID }, set_id => { like => "$setID,v\%" } }); - my %users = map { $_->user_id => 1 } @userVersions; + my %users = map { $_->[0] => 1 } @userVersions; my @allUserRecords = grep { $users{ $_->{user_id} } } $c->db->getUsersWhere({ -and => { user_id => { not_like => 'set_id:%' } }, user_id => { '!=' => $userID } },