diff --git a/classes/structure.php b/classes/structure.php index c5b6396..d70347f 100644 --- a/classes/structure.php +++ b/classes/structure.php @@ -802,7 +802,7 @@ class mod_attendance_structure { global $DB; $fields = array('username' , 'idnumber' , 'institution' , 'department', 'city', 'country'); - $userf = \core_user\fields::for_identity($this->context)->with_userpic()->excluding(...$fields); + $userf = \core_user\fields::for_identity($this->context)->with_userpic()->including(...$fields); $userfields = $userf->get_sql('u', false, '', 'id', false)->selects; if (empty($this->pageparams->sort)) {