From 81bd67dcf690e997de491d03e02939354aed397a Mon Sep 17 00:00:00 2001 From: Jaimos Skriletz Date: Thu, 21 Nov 2024 16:57:02 -0700 Subject: [PATCH] Show non-zero status of unattempted problems in grades table. This fixes #2627. --- lib/WeBWorK/Utils/Sets.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WeBWorK/Utils/Sets.pm b/lib/WeBWorK/Utils/Sets.pm index 01ab657526..d0193ddfba 100644 --- a/lib/WeBWorK/Utils/Sets.pm +++ b/lib/WeBWorK/Utils/Sets.pm @@ -103,7 +103,7 @@ sub grade_set ($db, $set, $studentName, $setIsVersioned = 0, $wantProblemDetails $status = 1 if $status > 1; if ($wantProblemDetails) { - push(@$problem_scores, $problemRecord->attempted ? 100 * wwRound(2, $status) : ' . '); + push(@$problem_scores, $status || $problemRecord->attempted ? 100 * wwRound(2, $status) : ' . '); push(@$problem_incorrect_attempts, $problemRecord->num_incorrect || 0); }