Skip to content

Commit

Permalink
Merge pull request #2315 from drgrice1/bugfix/essay-graded-no-problem
Browse files Browse the repository at this point in the history
Fix an uninitialized value used in pattern match.
  • Loading branch information
pstaabp authored Feb 13, 2024
2 parents 75b40e2 + edad723 commit ff0571b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WeBWorK/Utils/Rendering.pm
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ sub constructPGOptions ($ce, $user, $set, $problem, $psvn, $formFields, $transla
$options{num_of_incorrect_ans} = $problem->num_incorrect;

# This means that there are essay questions in the problem that have not been graded.
$options{needs_grading} = $problem->flags =~ /:needs_grading$/;
$options{needs_grading} = ($problem->flags // '') =~ /:needs_grading$/;

# Persistent problem data
$options{PERSISTENCE_HASH} = decode_json($problem->problem_data || '{}');
Expand Down

0 comments on commit ff0571b

Please sign in to comment.