Commit e183ba6
committed
Hotfix: Prevent error when adding new course.
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.1 parent c37af2b commit e183ba6
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
| 406 | + | |
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| |||
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
428 | | - | |
| 429 | + | |
| 430 | + | |
429 | 431 | | |
430 | 432 | | |
431 | 433 | | |
| |||
0 commit comments