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

MSH-492 Fix cohort-enrol course cohort sync #493

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

martygilbert
Copy link
Contributor

@martygilbert martygilbert commented Jul 11, 2024

If a cohort-enrol -c XX "cohortname" is run and the id for "cohortname" matches another customint1 in the mdl_enrol table for that course, it will state that the cohort is already enrolled when it's not. This verifies that the customint1 is for the cohort enrol type.

The fix was just to add 'enrol' => 'cohort' to make sure that we're only looking at enrollment plugins where customint1 matches AND it's a cohort sync enrollment.

Edit to add: This closes #492

If a cohort-enrol -c XX "cohortname" is run and
the id for "cohortname" matches another `customint1` in the
`mdl_enrol` table for that course, it will state that the cohort is
already enrolled when it's not. This verifies that the `customint1`
is for the `cohort` enrol type.
@tmuras tmuras merged commit eec3bda into tmuras:master Jul 11, 2024
5 checks passed
@tmuras
Copy link
Owner

tmuras commented Jul 11, 2024

Thank you @martygilbert

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.

Cohort Enrol Fails if Cohort ID Matches Another customint1 in mdl_enrol
2 participants