mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-42633 messages: Fix alternate name warnings when a message popup is shown
This commit is contained in:
parent
68291f2d57
commit
7887cc65f1
1 changed files with 2 additions and 1 deletions
|
@ -8602,7 +8602,8 @@ function message_popup_window() {
|
|||
}
|
||||
|
||||
// Got unread messages so now do another query that joins with the user table.
|
||||
$messagesql = "SELECT m.id, m.smallmessage, m.fullmessageformat, m.notification, u.firstname, u.lastname
|
||||
$namefields = get_all_user_name_fields(true, 'u');
|
||||
$messagesql = "SELECT m.id, m.smallmessage, m.fullmessageformat, m.notification, $namefields
|
||||
FROM {message} m
|
||||
JOIN {message_working} mw ON m.id=mw.unreadmessageid
|
||||
JOIN {message_processors} p ON mw.processorid=p.id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue