Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36283 use accesscontext when assigning cohort members

  • Loading branch information...
commit de06ba901fcec004bb1334d18afbbcdd69ddbbc1 1 parent ce44bf4
@skodak skodak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cohort/assign.php
View
4 cohort/assign.php
@@ -70,8 +70,8 @@
echo $OUTPUT->notification(get_string('removeuserwarning', 'core_cohort'));
// Get the user_selector we will need.
-$potentialuserselector = new cohort_candidate_selector('addselect', array('cohortid'=>$cohort->id));
-$existinguserselector = new cohort_existing_selector('removeselect', array('cohortid'=>$cohort->id));
+$potentialuserselector = new cohort_candidate_selector('addselect', array('cohortid'=>$cohort->id, 'accesscontext'=>$context));
+$existinguserselector = new cohort_existing_selector('removeselect', array('cohortid'=>$cohort->id, 'accesscontext'=>$context));
// Process incoming user assignments to the cohort
Please sign in to comment.
Something went wrong with that request. Please try again.