Open haiksu opened 10 months ago
Thanks @haiksu - please note that as this plugin is now part of Moodle core - we need to address any issues/bugs/improvements in the upstream "latest" release before we backport to this repository to support older Moodle sites. I note the current Moodle upstream release has the same "older" code: https://github.com/moodle/moodle/blob/main/admin/tool/mfa/factor/cohort/settings.php#L41
If you end up creating an upstream Moodle tracker for this and fixing it there - please come back and post the details here so we can then look at merging this into the repo here for older sites - otherwise we need to close this as "won't fix."
Instead of using
cohort_get_all_cohorts()
method, which returns only 25 cohorts, this modification fetches all the cohorts straight from the database without limitations.