From 8d28413198651f6afae2829a9da5492672b66d15 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 2 Jul 2021 19:26:32 +1200 Subject: [PATCH] Fix regression in user field conversion. --- classes/structure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {