Skip to content

Commit cdd3c5d

Browse files
authored
Merge pull request #3412 from TechnologyEnhancedLearning/Develop/Fixes/TD-6392-AddingCourseNameToCompleteNotificationsEmail
TD-6392 Adding Course Name To Complete Notifications Email
2 parents 3441401 + c27f91c commit cdd3c5d

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)