Fixed issue with invitation properties

This commit is contained in:
George Kalampokis 2020-07-10 12:36:47 +03:00
parent caec63be38
commit 9751d0fb78
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ public class InvitationServiceImpl implements InvitationService {
invitation.setUser(creator);
invitation.setToken(UUID.randomUUID());
invitation.setAcceptedInvitation(false);
invitation.setProperties("<role>" + role + "</role>");
invitation.setProperties("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
invitation.setProperties(invitation.getProperties() + "\n" +"<role>" + role + "</role>");
invitationDao.createOrUpdate(invitation);
sendInvitationAsync(dmp, invitation, userInfo.getName(), mailService, role);
}