Browse code

[AC] BM-15572 Fix: define a last name to domain admin

kladier authored on 08/01/2020 16:18:19
Showing 1 changed files
... ...
@@ -34,6 +34,7 @@ import com.google.gwt.dom.client.Document;
34 34
 import com.google.gwt.user.client.ui.RootPanel;
35 35
 
36 36
 import net.bluemind.addressbook.api.VCard;
37
+import net.bluemind.addressbook.api.VCard.Identification.Name;
37 38
 import net.bluemind.core.api.AsyncHandler;
38 39
 import net.bluemind.core.commons.gwt.JsMapStringJsObject;
39 40
 import net.bluemind.core.container.model.ItemValue;
... ...
@@ -206,6 +207,7 @@ public class QCreateDomainModelHandler implements IGwtModelHandler {
206 207
 		user.login = model.adminLogin;
207 208
 		user.password = model.adminPassword;
208 209
 		user.contactInfos = new VCard();
210
+		user.contactInfos.identification.name = Name.create(model.adminLogin, null, null, null, null, null);
209 211
 		user.dataLocation = model.selectedServer.getUid();
210 212
 		IGroupPromise groups = new GroupGwtEndpoint(Ajax.TOKEN.getSessionId(), model.domainUid).promiseApi();
211 213
 		return users.create(uid, user).thenCompose((v) -> {