KEYCLOAK-3074 Change the TestingResourceProvider to always both firstResults and maxResults in JPA criteria query
This commit is contained in:
parent
13bf36ce49
commit
c42b8f81e3
1 changed files with 7 additions and 3 deletions
|
@ -447,10 +447,14 @@ public class TestingResourceProvider implements RealmResourceProvider {
|
|||
query.toTime(to);
|
||||
}
|
||||
|
||||
if (firstResult != null) {
|
||||
if (firstResult != null || maxResults != null) {
|
||||
if (firstResult == null) {
|
||||
firstResult = 0;
|
||||
}
|
||||
if (maxResults == null) {
|
||||
maxResults = 100;
|
||||
}
|
||||
query.firstResult(firstResult);
|
||||
}
|
||||
if (maxResults != null) {
|
||||
query.maxResults(maxResults);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue