enrol-users MDL-24618 Enrol users search now concats firstname and lastname as reques...
[moodle.git] / enrol / ajax.php
index 81c0ede..44db515 100644 (file)
@@ -126,7 +126,7 @@ switch ($action) {
         $enrolid = required_param('enrolid', PARAM_INT);
         $search  = optional_param('search', '', PARAM_RAW);
         $page = optional_param('page', 0, PARAM_INT);
-        $outcome->response = $manager->get_potential_users($enrolid, $search, false, $page);
+        $outcome->response = $manager->get_potential_users($enrolid, $search, true, $page);
         foreach ($outcome->response['users'] as &$user) {
             $user->picture = $OUTPUT->user_picture($user);
             $user->fullname = fullname($user);