Skip to content


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 bf3bd818bf24886c10e0f5ca06e8242a701060ef 1 parent ecf1f30
@skodak skodak authored danpoltawski committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 cohort/assign.php
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.