From f0c952dd413b0818c4721fe6900a51c8ad72e832 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 23 Jul 2008 13:16:31 +0000 Subject: [PATCH] MDL-14566 Misused get_role_users() was not returning users assigned in parent categories --- enrol/manual/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/manual/enrol.php b/enrol/manual/enrol.php index 2b84c57e8..fec78fb66 100644 --- a/enrol/manual/enrol.php +++ b/enrol/manual/enrol.php @@ -390,7 +390,7 @@ function print_enrolmentkeyfrom($course) { $contactslisted = false; $canseehidden = has_capability('moodle/role:viewhiddenassigns', $context); if (!empty($CFG->enrol_manual_keyholderrole)) { - if ($contacts = get_role_users($CFG->enrol_manual_keyholderrole, get_context_instance(CONTEXT_COURSE, $course->id),$canseehidden )) { + if ($contacts = get_role_users($CFG->enrol_manual_keyholderrole, get_context_instance(CONTEXT_COURSE, $course->id),true,'','u.lastname ASC',$canseehidden )) { // guest user has a slightly different message if ($guest) { print_string('enrolmentkeyfromguest', '', ':
' ); -- 2.11.4.GIT