From 9f35bbe24fa5b40fa1abb12e4b7ecc6baf6ad25f Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 18 Sep 2019 20:16:17 +1200 Subject: [PATCH] Fix #422 - Only ask for fields once. fixes issue with Oracle. --- classes/structure.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/structure.php b/classes/structure.php index ab63de1..596c597 100644 --- a/classes/structure.php +++ b/classes/structure.php @@ -784,7 +784,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 { @@ -800,7 +800,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 {