Skip to content

Commit

Permalink
Merge pull request openwebwork#2307 from drgrice1/bugfix/instructor-f…
Browse files Browse the repository at this point in the history
…eedback-showparicalcorrect

Fix instructor feedback not being given when showPartialCorrectAnswers is false.
  • Loading branch information
drdrew42 authored Feb 7, 2024
2 parents e1c4a15 + f207ecf commit c6ffeee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/WebworkWebservice/RenderProblem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ async sub renderProblem {
showAttemptPreviews => $rh->{showAttemptPreviews}
// ($rh->{preview} || $rh->{WWsubmit} || $rh->{WWcorrectAns}),
showAttemptResults => $rh->{showAttemptResults} // ($rh->{WWsubmit} || $rh->{WWcorrectAns}),
forceShowAttemptResults => $rh->{forceShowAttemptResults},
forceShowAttemptResults => $rh->{forceShowAttemptResults} || ($rh->{isInstructor}
&& ($rh->{showAttemptResults} // ($rh->{WWsubmit} || $rh->{WWcorrectAns}))),
showMessages => $rh->{showMessages} // ($rh->{preview} || $rh->{WWsubmit} || $rh->{WWcorrectAns}),
showCorrectAnswers => $rh->{showCorrectAnswers} // ($rh->{WWcorrectAns} ? 2 : 0),
debuggingOptions => {
Expand Down

0 comments on commit c6ffeee

Please sign in to comment.