This is an automated email from the ASF dual-hosted git repository.
andreapatricelli pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new 97d04b4 fixed query on console rest client to retrieve form for a
given user
97d04b4 is described below
commit 97d04b46fb2c102191ef197c0d5125bc8490e44a
Author: Andrea Patricelli <[email protected]>
AuthorDate: Fri Jul 3 14:13:57 2020 +0200
fixed query on console rest client to retrieve form for a given user
---
.../org/apache/syncope/client/console/rest/UserRequestRestClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/ext/flowable/client-console/src/main/java/org/apache/syncope/client/console/rest/UserRequestRestClient.java
b/ext/flowable/client-console/src/main/java/org/apache/syncope/client/console/rest/UserRequestRestClient.java
index 49e0aa0..39c45c5 100644
---
a/ext/flowable/client-console/src/main/java/org/apache/syncope/client/console/rest/UserRequestRestClient.java
+++
b/ext/flowable/client-console/src/main/java/org/apache/syncope/client/console/rest/UserRequestRestClient.java
@@ -62,7 +62,7 @@ public class UserRequestRestClient extends BaseRestClient {
public Optional<UserRequestForm> getForm(final String userKey) {
PagedResult<UserRequestForm> forms =
getService(UserRequestService.class).
- getForms(new
UserRequestFormQuery.Builder().user(userKey).page(1).size(0).build());
+ getForms(new
UserRequestFormQuery.Builder().user(userKey).page(1).size(1).build());
UserRequestForm form = forms.getResult().isEmpty()
? null
: forms.getResult().get(0);