mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
enrol_manual: Set context correctly in manual enrolment user selector
This commit is contained in:
parent
5d6285c220
commit
e3d9426ab5
@ -63,7 +63,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user