Skip to content

Fix an issue in gateway quizzes that causes correct answers to be displayed on all submissions.#1812

Merged
pstaabp merged 1 commit intoopenwebwork:developfrom
drgrice1:bugfix/gateway-show-correct
Oct 19, 2022
Merged

Fix an issue in gateway quizzes that causes correct answers to be displayed on all submissions.#1812
pstaabp merged 1 commit intoopenwebwork:developfrom
drgrice1:bugfix/gateway-show-correct

Conversation

@drgrice1
Copy link
Member

The removal of the $pg{options}{showCorrectAnswers} from defaults.config in #1792 made it so that the $want->{showProblemGrader} value in GatewayQuiz.pm could possibly be undefined. As a result the AttemptsTable.pm code defaulted to showing correct answers. Both of those are changed. A fallback was added so that the $want->{showProblemGrader} is now defined and 0 in this case. Although that isn't really needed. Why did the AttemptsTable.pm default to displaying correct answers if the showCorrectAnswers option was undefined? That doesn't make sense. So that default is changed.

…played on all submissions.

The removal of the $pg{options}{showCorrectAnswers} from defaults.config
made it so that the $want->{showProblemGrader} value in GatewayQuiz.pm
could possibly be undefined.  As a result the AttemptsTable.pm code
defaulted to showing correct answers.  Both of those are changed.  A
fallback was added so that the $want->{showProblemGrader} is now defined
and 0 in this case.  Although that isn't really needed.  Why did the
AttemptsTable.pm default to displaying correct answers if the
showCorrectAnswers option was undefined?  That doesn't make sense.  So
that default is changed.
@pstaabp pstaabp merged commit 8757da4 into openwebwork:develop Oct 19, 2022
@drgrice1 drgrice1 deleted the bugfix/gateway-show-correct branch October 22, 2022 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants