MDL-68343 gradereport_singleview: Remove adjacent links to the same URL

This commit is contained in:
Shamim Rezaie 2020-04-06 19:23:54 +10:00
parent 976dac3fd1
commit 8a944856eb

View File

@ -208,12 +208,12 @@ class grade extends tablelike implements selectable_items, filterable_items {
$url = new moodle_url("/user/view.php", array('id' => $item->id, 'course' => $this->courseid));
$iconstring = get_string('filtergrades', 'gradereport_singleview', $fullname);
$grade->label = $fullname;
$userpic = $OUTPUT->user_picture($item, ['link' => false, 'visibletoscreenreaders' => false]);
$line = array(
$OUTPUT->action_icon($this->format_link('user', $item->id), new pix_icon('t/editstring', ''), null,
['title' => $iconstring, 'aria-label' => $iconstring]),
$OUTPUT->user_picture($item, array('visibletoscreenreaders' => false)) .
html_writer::link($url, $fullname),
html_writer::link($url, $userpic . $fullname),
$this->item_range()
);
$lineclasses = array(