Skip to content

Commit

Permalink
MDL-52455 quiz: doesn't include all user fields required by messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
amandadoughty authored and timhunt committed Dec 13, 2015
1 parent 0dfcc25 commit 692ef10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/quiz/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,8 @@ function quiz_send_notification_messages($course, $quiz, $attempt, $context, $cm
}

// Check for notifications required.
$notifyfields = 'u.id, u.username, u.idnumber, u.email, u.emailstop, u.lang, u.timezone, u.mailformat, u.maildisplay, ';
$notifyfields = 'u.id, u.username, u.idnumber, u.email, u.emailstop, u.lang,
u.timezone, u.mailformat, u.maildisplay, u.auth, u.suspended, u.deleted, ';
$notifyfields .= get_all_user_name_fields(true, 'u');
$groups = groups_get_all_groups($course->id, $submitter->id, $cm->groupingid);
if (is_array($groups) && count($groups) > 0) {
Expand Down

0 comments on commit 692ef10

Please sign in to comment.