From 2dc47fdebad9fb812e191a151da3909ae7b3a39b Mon Sep 17 00:00:00 2001 From: andreasschenkel <31856043+andreasschenkel@users.noreply.github.com> Date: Mon, 12 Oct 2020 11:06:12 +0200 Subject: [PATCH] MDL-69844 user: Fix no email in download_participants_table Only include eMail in download_participants_table if selected in showuseridentity ($identityfieldsselect) --- user/action_redir.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/user/action_redir.php b/user/action_redir.php index 46babe7ccd6..c0885a6a38e 100644 --- a/user/action_redir.php +++ b/user/action_redir.php @@ -91,7 +91,6 @@ if ($formaction == 'bulkchange.php') { $columnnames = array( 'firstname' => get_string('firstname'), 'lastname' => get_string('lastname'), - 'email' => get_string('email'), ); $identityfields = get_extra_user_fields($context); @@ -106,7 +105,7 @@ if ($formaction == 'bulkchange.php') { list($insql, $inparams) = $DB->get_in_or_equal($userids); } - $sql = "SELECT u.firstname, u.lastname, u.email" . $identityfieldsselect . " + $sql = "SELECT u.firstname, u.lastname" . $identityfieldsselect . " FROM {user} u WHERE u.id $insql";