Skip to content

Commit d04996a

Browse files
committed
Student publication: Add teacher comment to the notification BT#14141
1 parent b988963 commit d04996a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/work/work.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3410,6 +3410,10 @@ function addWorkComment($courseInfo, $userId, $parentWork, $work, $data)
34103410
$subject = sprintf(get_lang('ThereIsANewWorkFeedback'), $parentWork['title']);
34113411
$content = sprintf(get_lang('ThereIsANewWorkFeedbackInWorkXHere'), $work['title'], $url);
34123412

3413+
if (!empty($data['comment'])) {
3414+
$content .= '<br /><b>'.get_lang('Comment').':</b><br />'.$data['comment'];
3415+
}
3416+
34133417
if (!empty($userIdListToSend)) {
34143418
foreach ($userIdListToSend as $userIdToSend) {
34153419
MessageManager::send_message_simple(

0 commit comments

Comments
 (0)