Skip to content
Browse files

Merge branch 'MDL-28023_assignment_jabber_20' of git://github.com/and…

…yjdavis/moodle into MOODLE_20_STABLE
  • Loading branch information...
2 parents 8c75bb5 + 3c18677 commit abfe9dbe6e3027e31c9ab0e3025c518f67f0977d @samhemelryk samhemelryk committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/assignment/lib.php
View
6 mod/assignment/lib.php
@@ -1746,7 +1746,7 @@ function email_teachers($submission) {
$eventdata->fullmessage = $posttext;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = $posthtml;
- $eventdata->smallmessage = '';
+ $eventdata->smallmessage = $postsubject;
$eventdata->name = 'assignment_updates';
$eventdata->component = 'mod_assignment';
@@ -2614,11 +2614,13 @@ function assignment_cron () {
$eventdata->fullmessage = $posttext;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = $posthtml;
- $eventdata->smallmessage = '';
+ $eventdata->smallmessage = $postsubject;
$eventdata->name = 'assignment_updates';
$eventdata->component = 'mod_assignment';
$eventdata->notification = 1;
+ $eventdata->contexturl = $assignmentinfo->url;
+ $eventdata->contexturlname = $assignmentinfo->assignment;
message_send($eventdata);
}

0 comments on commit abfe9db

Please sign in to comment.
Something went wrong with that request. Please try again.