From d04996a32c2d4ad16ade984d3a86dda0a6779401 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 20 Mar 2018 15:54:24 +0100 Subject: [PATCH] Student publication: Add teacher comment to the notification BT#14141 --- main/work/work.lib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/work/work.lib.php b/main/work/work.lib.php index 8002840368..8acf107587 100755 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -3410,6 +3410,10 @@ function addWorkComment($courseInfo, $userId, $parentWork, $work, $data) $subject = sprintf(get_lang('ThereIsANewWorkFeedback'), $parentWork['title']); $content = sprintf(get_lang('ThereIsANewWorkFeedbackInWorkXHere'), $work['title'], $url); + if (!empty($data['comment'])) { + $content .= '
'.get_lang('Comment').':
'.$data['comment']; + } + if (!empty($userIdListToSend)) { foreach ($userIdListToSend as $userIdToSend) { MessageManager::send_message_simple(