Skip to content

Commit c27f91c

Browse files
committed
TD-6392 Adding Course Name To Complete Notifications Email
1 parent 3441401 commit c27f91c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

DigitalLearningSolutions.Web/Services/NotificationService.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ int numLearningLogItemsAffected
159159
" Note: This message has been copied to the administrator(s) managing this activity, for their information.";
160160
}
161161

162-
const string emailSubjectLine = "Digital Learning Solutions Activity Complete";
162+
string courseName = progressCompletionData.CourseName.Length > 30
163+
? progressCompletionData.CourseName.Substring(0, 30)
164+
: progressCompletionData.CourseName;
165+
166+
string emailSubjectLine = $"Digital Learning Solutions Activity Complete - {courseName}";
163167
var delegateNameOrGenericTitle = progress.DelegateFirstName ?? "Digital Learning Solutions Delegate";
164168
var emailsToCc = GetEmailsToCc(
165169
progressCompletionData.AdminId,

0 commit comments

Comments
 (0)