MDL-63293 enrol_manual: observe user paging config in enrol dialog.
[moodle.git] / enrol / manual / classes / enrol_users_form.php
index b7fa663..171aa26 100644 (file)
@@ -92,6 +92,7 @@ class enrol_manual_enrol_users_form extends moodleform {
             'multiple' => true,
             'courseid' => $course->id,
             'enrolid' => $instance->id,
+            'perpage' => $CFG->maxusersperpage,
             'userfields' => implode(',', get_extra_user_fields($context))
         );
         $mform->addElement('autocomplete', 'userlist', get_string('selectusers', 'enrol_manual'), array(), $options);