Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add map-seq to email subject #34

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading