Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: Prevent error when adding new course. #2623

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

somiaj
Copy link
Contributor

@somiaj somiaj commented Nov 14, 2024

When adding a new course if the initial instructor entered into the add course form has the same user ID as a user in the course non-student users, sets, and achievements are being copied from, this user gets assigned to sets and achievements twice, causing an error.

This skips assigning the initial user to the original sets they may have been assigned to and will always assign the initial user to all sets and achievements, so no error occurs.

This will be fixed as part of #2619 in develop, so there is only a hotfix PR for main.

When adding a new course if the initial instructor entered into
the add course form has the same user ID as a user in the course
non-student users, sets, and achievements are being copied from,
this user gets assigned to sets and achievements twice, causing
an error.

This skips assigning the initial user to the original sets they
may have been assigned to and will always assign the initial user
to all sets and achievements, so no error occurs.
@drgrice1 drgrice1 merged commit f27977b into openwebwork:main Nov 18, 2024
2 checks passed
@somiaj somiaj deleted the add-course-hotfix branch November 24, 2024 19:03
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