-
Bug
-
Resolution: Fixed
-
Critical
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE
-
wip-mdl-42754
-
There are several issues here:
1. Noreply user is being generated by core_user::get_noreply_user(). When used in message_send(), it throws a warning Notice: Undefined property: stdClass::$maildisplay in /lib/moodlelib.php on line 5727.
2. If I try to manually add maildisplay setting to the user object created by get_noreply_user(), everything seems to work fine, all messages are sent. However, when a user who got a message from noreply or support users goes to the messages page in their profile, they can see that there are unread messages, but there is no way of actually accessing the message.
To reproduce the warning:
Create a course with a quiz. Enrol a user. Enable "quiz:emailconfirmsubmission" capability for student role (so that students can get confirmations that they submitted a quiz) and attempt the quiz. You will get "Undefined property: stdClass::$maildisplay" warning.
- caused a regression
-
MDL-45565 Incoming messages screen duplicates Admin contact
- Closed
- is a regression caused by
-
MDL-31560 New message_send API is incapable of sending notfications from the $CFG->noreplyaddress.
- Closed
- Testing discovered
-
MDL-39923 Make badge notifications use internal Moodle messaging
- Closed