MDL-62605 core_user: course name filter in unenrol modal.

This commit is contained in:
Luca Bösch 2018-05-30 23:19:42 +02:00
parent 5b4ca9eb5b
commit 4a42d3decd

View File

@ -367,7 +367,7 @@ class participants_table extends \table_sql {
$canreviewenrol = has_capability('moodle/course:enrolreview', $this->context);
if ($canreviewenrol) {
$fullname = fullname($data);
$coursename = $this->course->fullname;
$coursename = format_string($this->course->fullname, true, array('context' => $this->context));
require_once($CFG->dirroot . '/enrol/locallib.php');
$manager = new \course_enrolment_manager($PAGE, $this->course);
$userenrolments = $manager->get_user_enrolments($data->id);