From 0f8f88e7f0e67f636bdcbd79921afafc119f934d Mon Sep 17 00:00:00 2001 From: Adam Olley Date: Wed, 21 Mar 2012 10:00:16 +1030 Subject: [PATCH] enrol_manual: Set context correctly in manual enrolment user selector --- enrol/manual/manage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/manual/manage.php b/enrol/manual/manage.php index f7ea7e2c629..f458a91c370 100644 --- a/enrol/manual/manage.php +++ b/enrol/manual/manage.php @@ -64,7 +64,7 @@ $PAGE->set_heading($course->fullname); navigation_node::override_active_url(new moodle_url('/enrol/users.php', array('id'=>$course->id))); // Create the user selector objects. -$options = array('enrolid' => $enrolid); +$options = array('enrolid' => $enrolid, 'accesscontext' => $context); $potentialuserselector = new enrol_manual_potential_participant('addselect', $options); $currentuserselector = new enrol_manual_current_participant('removeselect', $options);