Skip to content
Snippets Groups Projects
Commit 6067b810 authored by srosse's avatar srosse
Browse files

OO-4008: fix empty string search (patch S. Clemenz)

parent 93102d15
No related branches found
No related tags found
No related merge requests found
...@@ -187,6 +187,8 @@ public class UsermanagerUserSearchForm extends FormBasicController { ...@@ -187,6 +187,8 @@ public class UsermanagerUserSearchForm extends FormBasicController {
public SearchIdentityParams getSearchIdentityParams() { public SearchIdentityParams getSearchIdentityParams() {
// get user attributes from form // get user attributes from form
String idVal = getStringValue("id"); String idVal = getStringValue("id");
idVal = (idVal.equals("") ? null : idVal);
String loginVal = getStringValue("login"); String loginVal = getStringValue("login");
// when searching for deleted users, add wildcard to match with backup prefix // when searching for deleted users, add wildcard to match with backup prefix
List<Integer> statusList = getStatus(); List<Integer> statusList = getStatus();
......
...@@ -543,9 +543,6 @@ public class IdentityPowerSearchQueriesImpl implements IdentityPowerSearchQuerie ...@@ -543,9 +543,6 @@ public class IdentityPowerSearchQueriesImpl implements IdentityPowerSearchQuerie
dbq.setParameter("status", params.getStatus()); dbq.setParameter("status", params.getStatus());
} }
if(params.getIdAndExternalIds() != null) {
}
if(params.getIdAndExternalIds() != null) { if(params.getIdAndExternalIds() != null) {
if(StringHelper.isLong(params.getIdAndExternalIds())) { if(StringHelper.isLong(params.getIdAndExternalIds())) {
dbq.setParameter("idKey", Long.valueOf(params.getIdAndExternalIds())); dbq.setParameter("idKey", Long.valueOf(params.getIdAndExternalIds()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment