This commit is contained in:
Massimiliano Assante 2017-12-01 15:35:18 +00:00
parent cc064bf15a
commit 00fe7a8112
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ public class InvitesManager {
try { try {
String vreName = PortalContext.getConfiguration().getCurrentGroupName(request); String vreName = PortalContext.getConfiguration().getCurrentGroupName(request);
result = store.saveInvite(invite); result = store.saveInvite(invite);
if (result == InviteOperationResult.ALREADY_INVITED) {
invite.setKey(store.isExistingInvite(currScope, email));
}
emailResult = sendInviteEmail(request, invite, currUser, vreName, name, email, vreDescription); emailResult = sendInviteEmail(request, invite, currUser, vreName, name, email, vreDescription);
notifyInviteSent(request, currUser, currScope, invite, vreName); notifyInviteSent(request, currUser, currScope, invite, vreName);