Skip to content

Commit

Permalink
Bugfix to fix rest of bug prev commit
Browse files Browse the repository at this point in the history
Fix bug with user enter last name that is in Proxl and not choose last
name from dropdown and click invite
  • Loading branch information
danjasuw committed Aug 29, 2019
1 parent 475905c commit ec3d9ef
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,17 @@ private void addExistingUserToProjectUsingProjectId(
int invitedPersonAccessLevel,
int projectAuthShareableObjectId,
UserInviteResult userInviteResult ) throws Exception {

if ( invitedPerson_Proxl_AuthUserId == null ) {
// Try to get invitedPerson_Proxl_AuthUserId for invitedPerson_userMgmtUserId
// This applies for when user entered an email or last name that is in Proxl and clicked invite
Integer authUserId_FromDB = AuthUserDAO.getInstance().getIdForUserMgmtUserId( invitedPerson_userMgmtUserId );
if ( authUserId_FromDB != null ) {
// invitedPerson_userMgmtUserId is in Proxl DB so copy authUserId_FromDB to invitedPerson_Proxl_AuthUserId
invitedPerson_Proxl_AuthUserId = authUserId_FromDB;
}
}


// Get full user data

Expand Down

0 comments on commit ec3d9ef

Please sign in to comment.