[SYNCOPE-1257] fixed search by group key with spaces
authorAndrea Patricelli <andreapatricelli@apache.org>
Thu, 28 Dec 2017 13:17:36 +0000 (14:17 +0100)
committerAndrea Patricelli <andreapatricelli@apache.org>
Thu, 28 Dec 2017 13:19:00 +0000 (14:19 +0100)
client/console/src/main/java/org/apache/syncope/client/console/panels/search/SearchUtils.java

index 80fa692..eaecc2f 100644 (file)
@@ -235,7 +235,7 @@ public final class SearchUtils implements Serializable {
 
                     case GROUP_MEMBERSHIP:
                         if (StringUtils.isNotBlank(clause.getProperty())) {
-                            String groupKey = clause.getProperty().split(" ")[0];
+                            String groupKey = clause.getProperty();
 
                             if (builder instanceof UserFiqlSearchConditionBuilder) {
                                 condition = clause.getComparator() == SearchClause.Comparator.EQUALS