Skip to content

Fix bug in problemRandomize hardcopy. (Hotfix of #1516) - #1519

Open
somiaj wants to merge 1 commit into
openwebwork:mainfrom
somiaj:bugfix/hardcopy-problem-randomize-hotfix
Open

Fix bug in problemRandomize hardcopy. (Hotfix of #1516)#1519
somiaj wants to merge 1 commit into
openwebwork:mainfrom
somiaj:bugfix/hardcopy-problem-randomize-hotfix

Conversation

@somiaj

@somiaj somiaj commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

When generating hardcopy with a problem using problemRandomize, $input_ref doesn't contain the user or effectiveUser keys, which causes an error when trying to compare them. Only compare if user and efficitveUser are equal in the case effectiveUser is a defined key in $input_ref.

Fixes #1515.

When generating hardcopy with a problem using problemRandomize,
`$input_ref` doesn't contain the `user` or `effectiveUser` keys,
which causes an error when trying to compare them. Only compare if
`user`  and `efficitveUser` are equal in the case `effectiveUser`
is a defined key in `$input_ref`.

Fixes openwebwork#1515.
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.

problemRandomize.pl doesn't generate hardcopy

2 participants