Skip to content

Commit 3703f7f

Browse files
authored
Merge pull request #2918 from drgrice1/bugfix/show-correct-preserve-answers
Preserve the entered answer when the "Show Correct Answers" button is used.
2 parents 5424afc + 3c1af12 commit 3703f7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/WeBWorK/ContentGenerator/Problem.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ async sub pre_header_initialize ($c) {
553553
$c->{set}->psvn,
554554
$prEnabled
555555
&& !$problem->{prCount}
556-
&& !($c->{submitAnswers} || $previewAnswers || $checkAnswers) ? {} : $formFields,
556+
&& !($c->{submitAnswers} || $previewAnswers || $checkAnswers || $showOnlyCorrectAnswers) ? {} : $formFields,
557557
{
558558
displayMode => $displayMode,
559559
showHints => $will{showHints},

0 commit comments

Comments
 (0)