Commit c7a8a1b1 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1796583: Making delete assessment email message better



behatnotneeded

Change-Id: I68e5b0680f80e416d9961e0d6c5fe66b652b584d
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 6335ed9c
......@@ -27,7 +27,7 @@ $string['assessmentremoved'] = 'Peer assessment deleted';
// peer assessment notifications
$string['deletednotificationsubject'] = 'Peer assessment on page "%s" deleted';
$string['deletedauthornotification'] = "Your peer assessment on page \"%s\" was deleted. You had written:\n%s";
$string['deletedauthornotification1'] = "Your peer assessor, %s, deleted their assessment on page \"%s\". They had written:\n%s";
$string['newassessmentnotificationsubject'] = 'New peer assessment on page "%s"';
$string['feedbacknotificationhtml'] = "<div style=\"padding: 0.5em 0; border-bottom: 1px solid #999;\"><strong>%s added a peer assessment on %s</strong><br>%s</div>
......
......@@ -782,9 +782,9 @@ function delete_assessment_submit(Pieform $form, $values) {
'args' => array($title),
),
'message' => (object) array(
'key' => 'deletedauthornotification',
'key' => 'deletedauthornotification1',
'section' => 'artefact.peerassessment',
'args' => array($title, html2text($assessment->get('description'))),
'args' => array(display_name($author), $title, html2text($assessment->get('description'))),
),
'urltext' => (object) array(
'key' => 'view',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment