Permalink
Browse files

MDL-36283 use accesscontext when assigning cohort members

  • Loading branch information...
1 parent ce44bf4 commit de06ba901fcec004bb1334d18afbbcdd69ddbbc1 @skodak skodak committed Nov 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cohort/assign.php
View
@@ -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

0 comments on commit de06ba9

Please sign in to comment.