summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver
diff options
context:
space:
mode:
authorJonathan Bauer2017-01-04 16:03:42 +0100
committerJonathan Bauer2017-01-04 16:03:42 +0100
commitcc23f06f4d2c2a93265542c136c8e4eb4f4722d7 (patch)
tree85107336be5f6624ec4761b819fd1f0273d0e528 /dozentenmodulserver
parent[client] Add hint to image upload wizard that you can update existing VMs (diff)
downloadtutor-module-cc23f06f4d2c2a93265542c136c8e4eb4f4722d7.tar.gz
tutor-module-cc23f06f4d2c2a93265542c136c8e4eb4f4722d7.tar.xz
tutor-module-cc23f06f4d2c2a93265542c136c8e4eb4f4722d7.zip
[server] use mail template from the configuration database when generating mails for deactivated lectures
Diffstat (limited to 'dozentenmodulserver')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/mail/MailGenerator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/mail/MailGenerator.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/mail/MailGenerator.java
index 5fd313e3..edea9597 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/mail/MailGenerator.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/mail/MailGenerator.java
@@ -103,7 +103,7 @@ public class MailGenerator {
for (LectureSummary lecture : lectures) {
List<UserInfo> relevantUsers = getUserToMail(lecture);
- MailTemplate template = new MailTemplate("lectureDeactivated");
+ MailTemplate template = DbConfiguration.getMailTemplate(Template.LECTURE_DEACTIVATED);
Map<String, String> templateArgs = new HashMap<>();
templateArgs.put("lecture", lecture.lectureName);