Merge branch 'MDL-68921-master' of git://github.com/vmdef/moodle
authorAdrian Greeve <abgreeve@gmail.com>
Tue, 25 Aug 2020 02:39:28 +0000 (10:39 +0800)
committerAdrian Greeve <abgreeve@gmail.com>
Tue, 25 Aug 2020 02:39:28 +0000 (10:39 +0800)
cohort/index.php

index f611f98..0341bf9 100644 (file)
@@ -154,7 +154,7 @@ foreach($cohorts['cohorts'] as $cohort) {
         $cohortmanager = has_capability('moodle/cohort:manage', $cohortcontext);
         $cohortcanassign = has_capability('moodle/cohort:assign', $cohortcontext);
 
-        $urlparams = array('id' => $cohort->id, 'returnurl' => $baseurl->out_as_local_url());
+        $urlparams = array('id' => $cohort->id, 'returnurl' => $baseurl->out_as_local_url(false));
         $showhideurl = new moodle_url('/cohort/edit.php', $urlparams + array('sesskey' => sesskey()));
         if ($cohortmanager) {
             if ($cohort->visible) {