From 57e5a3bc3a2efe4c2bb81697718c23cd4a6ca041 Mon Sep 17 00:00:00 2001 From: Jaimos Skriletz Date: Tue, 22 Sep 2026 16:20:32 -0600 Subject: [PATCH] Fix bug in ProblemGrader when only points are shown. The hidden field score was incorrectly set (by me) to zero, and not the actual score of the student initially. Which means saving the grades without changing a student's score would result in a grade of zero. --- templates/ContentGenerator/Instructor/ProblemGrader.html.ep | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/ContentGenerator/Instructor/ProblemGrader.html.ep b/templates/ContentGenerator/Instructor/ProblemGrader.html.ep index d7d0bffd7e..496ea417b0 100644 --- a/templates/ContentGenerator/Instructor/ProblemGrader.html.ep +++ b/templates/ContentGenerator/Instructor/ProblemGrader.html.ep @@ -240,9 +240,8 @@ % my $thisStepSize = $useUserValue ? points_stepsize($problemValue) : $stepSize; % if ($ce->{problemGraderScore} eq 'Point') { - % param("$userID.$versionID.score", wwRound(0, $_->{problem}->status * 100)); <%= hidden_field - "$userID.$versionID.score" => 0, + "$userID.$versionID.score" => wwRound(0, $_->{problem}->status * 100), id => "$userID.$versionID.score" %> % } % param("$userID.$versionID.points", undef);