Commit 2dc47fde authored by andreasschenkel's avatar andreasschenkel Committed by Jenkins
Browse files

MDL-69844 user: Fix no email in download_participants_table

Only include eMail in download_participants_table 
if selected in showuseridentity 
($identityfieldsselect)
parent d7976971
......@@ -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";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment