Merge branch 'w46_MDL-36283_m23_cohortmembers' of git://github.com/skodak/moodle...
authorDan Poltawski <dan@moodle.com>
Wed, 14 Nov 2012 03:26:05 +0000 (11:26 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 14 Nov 2012 03:26:05 +0000 (11:26 +0800)
cohort/assign.php

index b7f6589..3505c6c 100644 (file)
@@ -70,8 +70,8 @@ echo $OUTPUT->heading(get_string('assignto', 'cohort', format_string($cohort->na
 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