You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by an...@apache.org on 2020/07/03 12:38:17 UTC

[syncope] branch master updated: fixed query on console rest client to retrieve form for a given user

This is an automated email from the ASF dual-hosted git repository.

andreapatricelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 9ba9524  fixed query on console rest client to retrieve form for a given user
9ba9524 is described below

commit 9ba9524bb45e527da91d074d1d9209797f292009
Author: Andrea Patricelli <an...@apache.org>
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 41a72bb..03cf6c9 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 static 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);