#192 Fixed report fields for download
This commit is contained in:
parent
45494e3586
commit
b93a12a74f
1 changed files with 6 additions and 2 deletions
|
@ -86,7 +86,7 @@ class report_table extends \table_sql {
|
||||||
$headers[] = get_string('file');
|
$headers[] = get_string('file');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_capability('mod/customcert:manage', \context_module::instance($cm->id))) {
|
if (!$this->is_downloading() && has_capability('mod/customcert:manage', \context_module::instance($cm->id))) {
|
||||||
$columns[] = 'actions';
|
$columns[] = 'actions';
|
||||||
$headers[] = '';
|
$headers[] = '';
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,11 @@ class report_table extends \table_sql {
|
||||||
public function col_fullname($user) {
|
public function col_fullname($user) {
|
||||||
global $OUTPUT;
|
global $OUTPUT;
|
||||||
|
|
||||||
return $OUTPUT->user_picture($user) . ' ' . fullname($user);
|
if (!$this->is_downloading()) {
|
||||||
|
return $OUTPUT->user_picture($user) . ' ' . fullname($user);
|
||||||
|
} else {
|
||||||
|
return fullname($user);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue