MDL-62364 core: allow null for 'courseid' in notification_sent event
commitb6b7c2636f20ac0cc5809b6263f1cb852ad2b57e
authorMark Nelson <markn@moodle.com>
Wed, 9 May 2018 07:48:17 +0000 (9 15:48 +0800)
committerMark Nelson <markn@moodle.com>
Wed, 9 May 2018 09:27:00 +0000 (9 17:27 +0800)
treef8c0dc8edcac946b82372dbd9dfde324b15dd844
parent02c7769422633f9b30ece28777e5b6f5a596eb49
MDL-62364 core: allow null for 'courseid' in notification_sent event

It's possible the '\core\message\message' object has a null value
for the 'courseid' which is used in \core\message\manager::send_message().
Make sure we compensate for this.
lib/classes/event/notification_sent.php
message/tests/events_test.php