Fix issue with search not updating

Related: entgra/product-iots#6
merge-requests/31/head
Madawa Soysa 6 years ago
parent 6aca4650e2
commit 9b5cb1ef6a

@ -470,7 +470,7 @@ public class UserManagementServiceImpl implements UserManagementService {
tempList = getUserList(Constants.USER_CLAIM_LAST_NAME, lastName); tempList = getUserList(Constants.USER_CLAIM_LAST_NAME, lastName);
if (commonUsers == null || commonUsers.size() == 0) { if (commonUsers == null || commonUsers.size() == 0) {
commonUsers = tempList; commonUsers = tempList;
} else if (tempList.size() > 0){ } else {
commonUsers.retainAll(tempList); commonUsers.retainAll(tempList);
} }
} }
@ -479,7 +479,7 @@ public class UserManagementServiceImpl implements UserManagementService {
tempList = getUserList(Constants.USER_CLAIM_EMAIL_ADDRESS, emailAddress); tempList = getUserList(Constants.USER_CLAIM_EMAIL_ADDRESS, emailAddress);
if (commonUsers == null || commonUsers.size() == 0) { if (commonUsers == null || commonUsers.size() == 0) {
commonUsers = tempList; commonUsers = tempList;
} else if (tempList.size() > 0) { } else {
commonUsers.retainAll(tempList); commonUsers.retainAll(tempList);
} }
} }

Loading…
Cancel
Save