|
@ -802,11 +802,8 @@ class mod_attendance_structure { |
|
|
global $DB; |
|
|
global $DB; |
|
|
|
|
|
|
|
|
$fields = array('username' , 'idnumber' , 'institution' , 'department', 'city', 'country'); |
|
|
$fields = array('username' , 'idnumber' , 'institution' , 'department', 'city', 'country'); |
|
|
// Get user identity fields if required - doesn't return original $fields array. |
|
|
$userf = \core_user\fields::for_identity($this->context)->with_userpic()->excluding(...$fields); |
|
|
$extrafields = get_extra_user_fields($this->context, $fields); |
|
|
$userfields = $userf->get_sql('u', false, '', 'id', false)->selects; |
|
|
$fields = array_merge($fields, $extrafields); |
|
|
|
|
|
|
|
|
|
|
|
$userfields = user_picture::fields('u', $fields); |
|
|
|
|
|
|
|
|
|
|
|
if (empty($this->pageparams->sort)) { |
|
|
if (empty($this->pageparams->sort)) { |
|
|
$this->pageparams->sort = ATT_SORT_DEFAULT; |
|
|
$this->pageparams->sort = ATT_SORT_DEFAULT; |
|
|