Skip to content

Commit

Permalink
Merge pull request #149 from catalyst/147-pass-context-to-selectors-400
Browse files Browse the repository at this point in the history
[#147] Pass context to user selectors
  • Loading branch information
danmarsden authored Apr 22, 2024
2 parents f90a343 + 438ba3c commit 51fd75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editattendees.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
$errors = array();

// Get the user_selector we will need.
$potentialuserselector = new facetoface_candidate_selector('addselect', array('sessionid' => $session->id, 'courseid' => $course->id));
$existinguserselector = new facetoface_existing_selector('removeselect', array('sessionid' => $session->id));
$potentialuserselector = new facetoface_candidate_selector('addselect', array('sessionid' => $session->id, 'courseid' => $course->id, 'accesscontext' => $context));
$existinguserselector = new facetoface_existing_selector('removeselect', array('sessionid' => $session->id, 'accesscontext' => $context));

// Process incoming user assignments.
if (optional_param('add', false, PARAM_BOOL) && confirm_sesskey()) {
Expand Down

0 comments on commit 51fd75a

Please sign in to comment.