From b3e22c6655745c43372b287b9ad85391ebfc5454 Mon Sep 17 00:00:00 2001
From: srosse <stephane.rosse@frentix.com>
Date: Wed, 23 Jan 2019 17:15:06 +0100
Subject: [PATCH] OO-3834: add real name to the contact form of the coaching
 tool

---
 .../org/olat/modules/coach/ui/StudentCoursesController.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/olat/modules/coach/ui/StudentCoursesController.java b/src/main/java/org/olat/modules/coach/ui/StudentCoursesController.java
index e9503014c47..0c966f51d3f 100644
--- a/src/main/java/org/olat/modules/coach/ui/StudentCoursesController.java
+++ b/src/main/java/org/olat/modules/coach/ui/StudentCoursesController.java
@@ -377,7 +377,8 @@ public class StudentCoursesController extends FormBasicController implements Act
 		removeAsListenerAndDispose(cmc);
 
 		ContactMessage cmsg = new ContactMessage(getIdentity());
-		ContactList contactList = new ContactList("to");
+		String fullName = userManager.getUserDisplayName(student);
+		ContactList contactList = new ContactList(fullName);
 		contactList.add(student);
 		cmsg.addEmailTo(contactList);
 		contactCtrl = new ContactFormController(ureq, getWindowControl(), true, false, false, cmsg);
-- 
GitLab