Skip to content

Commit

Permalink
MDL-81613 report_log: fix user fullname export for log report
Browse files Browse the repository at this point in the history
  • Loading branch information
danielneis committed Apr 22, 2024
1 parent cff8e8d commit a95b757
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion report/log/classes/table_log.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,13 @@ public function col_fullnameuser($event) {

} else if ($eventusername) {
if (empty($this->download)) {
$params = array('id' => $event->userid);
$params = ['id' => $event->userid];
if ($event->courseid) {
$params['course'] = $event->courseid;
}
$username = html_writer::link(new moodle_url('/user/view.php', $params), $eventusername);
} else {
$username = $eventusername;
}
} else {
$username = '-';
Expand Down

0 comments on commit a95b757

Please sign in to comment.