From 013abd64cd710a23338c805870d73ac3324f3e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Fri, 10 Jun 2016 12:30:28 +0200 Subject: [PATCH] MDL-54865 grade: student name hyperlinked in gradebook user report In the Gradebook, User report, the student's name (at the top) is a hyperlink to that student's account. In most places where a student's name shows (e.g. the Grader report) it is most often a hyperlink. --- grade/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grade/lib.php b/grade/lib.php index 1c0da1e67f2..29838740421 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -1039,7 +1039,8 @@ function print_grade_page_head($courseid, $active_type, $active_plugin=null, if (isset($user)) { $output = $OUTPUT->context_header( array( - 'heading' => fullname($user), + 'heading' => html_writer::link(new moodle_url('/user/view.php', array('id' => $user->id, + 'course' => $courseid)), fullname($user)), 'user' => $user, 'usercontext' => context_user::instance($user->id) ), 2