From: Dani Palou Date: Tue, 5 Jul 2016 08:34:52 +0000 (+0200) Subject: MDL-54928 notifications: Add username to emailto users X-Git-Tag: v3.2.0-beta~898^2 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=6f2815fa51959b93eaed0613782c818678132489 MDL-54928 notifications: Add username to emailto users --- diff --git a/user/messageselect.php b/user/messageselect.php index bc1b693b092..99f2d96b442 100644 --- a/user/messageselect.php +++ b/user/messageselect.php @@ -97,7 +97,7 @@ if ($data = data_submitted()) { if (!array_key_exists($m[2], $SESSION->emailto[$id])) { if ($user = $DB->get_record_select('user', "id = ?", array($m[2]), 'id, '. $namefields . ', idnumber, email, mailformat, lastaccess, lang, '. - 'maildisplay, auth, suspended, deleted, emailstop')) { + 'maildisplay, auth, suspended, deleted, emailstop, username')) { $SESSION->emailto[$id][$m[2]] = $user; $count++; }