Merge branch 'MDL-75665_master' of https://github.com/tasosb/moodle

This commit is contained in:
Paul Holden 2022-11-17 11:41:54 +00:00
commit 9f2e508ccb

View File

@ -352,8 +352,10 @@ class grade_report_overview extends grade_report {
$table->head = array(get_string('coursename', 'grades'));
$table->data = null;
foreach ($this->teachercourses as $courseid => $course) {
$coursecontext = context_course::instance($course->id);
$coursenamelink = format_string($course->fullname, true, ['context' => $coursecontext]);
$url = new moodle_url('/grade/report/index.php', array('id' => $courseid));
$table->data[] = array(html_writer::link($url, $course->fullname));
$table->data[] = array(html_writer::link($url, $coursenamelink));
}
echo html_writer::table($table);
}