-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
2.9.4
-
MOODLE_29_STABLE
On our Moodle site with 629 users, when we go to Mnet > Remote enrollments client > Edit enrolments and then attempt to Edit enrolments for a particular remote course, the enrolments page that comes up (/mnet/service/enrol/course.php) says "Too many users (629) to show, please use the search" in the list of potential members. This is despite us having set maxusersperpage to 1000 under Users > Permissions > User Policies, which results in a full list of users being displayed on similar screens on other parts of the site, as expected.
The fix seems to be to edit /mnet/service/enrol/locallib.php to change the two lines that read
if ($potentialmemberscount > 100) {
to be
if ($potentialmemberscount > $this->maxusersperpage) {
instead, to bring it into line with other parts of the codebase.