Browse Source

Fix #422 - Only ask for fields once.

fixes issue with Oracle.
MOODLE_36_STABLE
Dan Marsden 5 years ago
parent
commit
8d76bb19e0
  1. 4
      classes/structure.php

4
classes/structure.php

@ -808,7 +808,7 @@ class mod_attendance_structure {
$groups = $groupid;
}
$users = get_users_by_capability($this->context, 'mod/attendance:canbelisted',
$userfields.',u.id, u.firstname, u.lastname, u.email',
$userfields,
$orderby, $startusers, $usersperpage, $groups,
'', false, true);
} else {
@ -824,7 +824,7 @@ class mod_attendance_structure {
$groups = $groupid;
}
$users = get_users_by_capability($this->context, 'mod/attendance:canbelisted',
$userfields.',u.id, u.firstname, u.lastname, u.email',
$userfields,
$orderby, '', '', $groups,
'', false, true);
} else {

Loading…
Cancel
Save