Skip to content

Fix bug in copying a context. - #1491

Merged
Alex-Jordan merged 1 commit into
openwebwork:PG-2.21from
somiaj:context-copy-fix
Aug 4, 2026
Merged

Fix bug in copying a context.#1491
Alex-Jordan merged 1 commit into
openwebwork:PG-2.21from
somiaj:context-copy-fix

Conversation

@somiaj

@somiaj somiaj commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

When creating a copy of a context, only keys on the new context were copied, instead all keys from the old context should be copied. This is fixed by looping over $self instead of $context. This fix was suggested by @dpvc.

When creating a copy of a context, only keys on the new
context were copied, instead all keys from the old context
should be copied. This is fixed by looping over `$self`
instead of `$context`. This fix was suggested by @dpvc.
@Alex-Jordan
Alex-Jordan merged commit 3f847bc into openwebwork:PG-2.21 Aug 4, 2026
3 checks passed
@somiaj
somiaj deleted the context-copy-fix branch August 4, 2026 21:36
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