Skip to content

Commit

Permalink
Merge pull request #148 from catalyst/147-pass-context-to-selectors
Browse files Browse the repository at this point in the history
[#147] Pass context to user selectors
  • Loading branch information
keevan authored Apr 21, 2024
2 parents a09c450 + f7b1c85 commit c676005
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 c676005

Please sign in to comment.