Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

enrol_manual: Set context correctly in manual enrolment user selector

  • Loading branch information...
commit 0f8f88e7f0e67f636bdcbd79921afafc119f934d 1 parent c5575c6
@aolley aolley authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/manual/manage.php
View
2  enrol/manual/manage.php
@@ -64,7 +64,7 @@
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);
Please sign in to comment.
Something went wrong with that request. Please try again.