mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Merge branch 'MDL-47162' of https://github.com/stronk7/moodle
This commit is contained in:
commit
57911c1f40
@ -723,7 +723,7 @@ function badges_notify_badge_award(badge $badge, $userid, $issued, $filepathhash
|
||||
|
||||
// Notify recipient.
|
||||
$eventdata = new \core\message\message();
|
||||
$eventdata->courseid = $badge->courseid;
|
||||
$eventdata->courseid = is_null($badge->courseid) ? SITEID : $badge->courseid; // Profile/site come with no courseid.
|
||||
$eventdata->component = 'moodle';
|
||||
$eventdata->name = 'badgerecipientnotice';
|
||||
$eventdata->userfrom = $userfrom;
|
||||
|
Loading…
x
Reference in New Issue
Block a user