From 7af6f62943e723f6ed0537009d1823c0e85e7cad 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/ContentGenerator/Instructor/ProblemGrader.html.ep b/templates/ContentGenerator/Instructor/ProblemGrader.html.ep index 30b857c915..c4f77e7264 100644 --- a/templates/ContentGenerator/Instructor/ProblemGrader.html.ep +++ b/templates/ContentGenerator/Instructor/ProblemGrader.html.ep @@ -228,9 +228,9 @@ % 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, - id => "$userID.$versionID.score" %> + <%= hidden_field + "$userID.$versionID.score" => wwRound(0, $_->{problem}->status * 100), + id => "$userID.$versionID.score" %> % } % param("$userID.$versionID.points", undef); <%= number_field "$userID.$versionID.points" => round_nearest_stepsize(