Skip to content

Commit d6b3307

Browse files
committed
Merge pull request #13 from dlglin/master
Fix typo in Grades.pm that was causing global problem data to sometimes be stored in the problem_user record
2 parents 27cda6d + 516ccb7 commit d6b3307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WeBWorK/ContentGenerator/Grades.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ sub grade_set {
505505
# the problem is marked as attempted if the status has
506506
# been set or if the problem has been attempted
507507
# DBFIXME this should happen in the database layer, not here!
508-
if (!$attempted && ($status || $num_of_attempts)) {
508+
if (!$attempted && ($status || $num_correct || $num_incorrect )) {
509509
$attempted = 1;
510510
$problemRecord->attempted('1');
511511
# DBFIXME: this is another case where it

0 commit comments

Comments
 (0)