Browse Source

Fix regression in user field conversion.

40-behatfixes
Dan Marsden 4 years ago
parent
commit
8d28413198
  1. 2
      classes/structure.php

2
classes/structure.php

@ -802,7 +802,7 @@ class mod_attendance_structure {
global $DB; global $DB;
$fields = array('username' , 'idnumber' , 'institution' , 'department', 'city', 'country'); $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; $userfields = $userf->get_sql('u', false, '', 'id', false)->selects;
if (empty($this->pageparams->sort)) { if (empty($this->pageparams->sort)) {

Loading…
Cancel
Save