Skip to content

Commit

Permalink
add map-seq to email subject
Browse files Browse the repository at this point in the history
  • Loading branch information
aydevworks authored and aspark21 committed Feb 7, 2024
1 parent 0c0bc09 commit 3e69f34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/taskmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public static function send_email_notification(int $taskid) : void {
'succeeded_count' => $succeededcount,
'failed_count' => $failedcount,
]);
email_to_user($user, $user, get_string('email:subject', 'local_sitsgradepush'), $content);
email_to_user($user, $user, get_string('email:subject', 'local_sitsgradepush', $result->mab), $content);
} else {
throw new \moodle_exception('error:tasknotfound', 'local_sitsgradepush');
}
Expand Down
2 changes: 1 addition & 1 deletion lang/en/local_sitsgradepush.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
$string['privacy:metadata:local_sitsgradepush_tasks:info'] = 'Additional information about the transfer task.';

// Email strings.
$string['email:subject'] = 'Marks Transfer task Completed';
$string['email:subject'] = 'Marks Transfer task Completed - {$a}';
$string['email:username'] = 'Dear {$a},';
$string['email:part_one'] = 'The following marks transfer task has now been completed:';
$string['email:activity_name'] = 'Moodle Activity:';
Expand Down
2 changes: 1 addition & 1 deletion templates/notification_email.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}}

<div style="font-family: Arial, sans-serif;">
<h2>{{#str}} email:subject, local_sitsgradepush {{/str}}</h2>
<h2>{{#str}} email:subject, local_sitsgradepush, {{map_code}} {{/str}}</h2>
<p>{{#str}} email:username, local_sitsgradepush, {{user_name}} {{/str}}</p>
<p>{{#str}} email:part_one, local_sitsgradepush {{/str}}</p>
<ul>
Expand Down

0 comments on commit 3e69f34

Please sign in to comment.