mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-50314 mod_quiz: removed hardcoded export columns
* The columns 'institution', 'department' and 'email' are no longer automatically included in all quiz result exports. * These columns can still be used, but have to be configured under 'showuseridentity'.
This commit is contained in:
parent
6e2e63457e
commit
3a33d51497
@ -202,25 +202,11 @@ abstract class quiz_attempts_report extends quiz_default_report {
|
||||
$headers[] = get_string('firstname');
|
||||
}
|
||||
|
||||
// When downloading, some extra fields are always displayed (because
|
||||
// there's no space constraint) so do not include in extra-field list.
|
||||
$extrafields = get_extra_user_fields($this->context,
|
||||
$table->is_downloading() ? array('institution', 'department', 'email') : array());
|
||||
$extrafields = get_extra_user_fields($this->context);
|
||||
foreach ($extrafields as $field) {
|
||||
$columns[] = $field;
|
||||
$headers[] = get_user_field_name($field);
|
||||
}
|
||||
|
||||
if ($table->is_downloading()) {
|
||||
$columns[] = 'institution';
|
||||
$headers[] = get_string('institution');
|
||||
|
||||
$columns[] = 'department';
|
||||
$headers[] = get_string('department');
|
||||
|
||||
$columns[] = 'email';
|
||||
$headers[] = get_string('email');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user