Jeroen Hoffman pushed to branch master at cms-community / hippo-cms
Commits: 7c4e64c1 by Bert Leunis at 2017-06-09T10:18:15+02:00 CMS-10782 filter auto suggest entries case insensitive - - - - - 456696ec by Bert Leunis at 2017-07-10T11:46:27+02:00 CMS-10782 Merge master changes in feature/CMS-10782 - - - - - 1272ac00 by Jeroen Hoffman at 2017-07-11T15:15:03+02:00 CMS-10782 Merge branch 'master' into feature/CMS-10782 - - - - - 35cdfe22 by Jeroen Hoffman at 2017-07-11T15:33:44+02:00 CMS-10782 Reintegrate branch 'feature/CMS-10782' - - - - - 2 changed files: - console/frontend/src/main/java/org/hippoecm/frontend/plugins/console/menu/node/NodeDialog.java - console/frontend/src/main/java/org/hippoecm/frontend/plugins/console/menu/property/PropertyDialog.java Changes: ===================================== console/frontend/src/main/java/org/hippoecm/frontend/plugins/console/menu/node/NodeDialog.java ===================================== --- a/console/frontend/src/main/java/org/hippoecm/frontend/plugins/console/menu/node/NodeDialog.java +++ b/console/frontend/src/main/java/org/hippoecm/frontend/plugins/console/menu/node/NodeDialog.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2015 Hippo B.V. (http://www.onehippo.com) + * Copyright 2008-2017 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -148,7 +148,7 @@ public class NodeDialog extends AbstractDialog<Node> { } Iterator<String> resultIter = result.iterator(); while (resultIter.hasNext()) { - if (!resultIter.next().contains(input)) { + if (!resultIter.next().toLowerCase().contains(input.toLowerCase())) { resultIter.remove(); } } @@ -207,7 +207,7 @@ public class NodeDialog extends AbstractDialog<Node> { } else { for (String nodeName : namesToTypes.keySet()) { - if (!nodeName.equals("*") && nodeName.contains(input)) { + if (!nodeName.equals("*") && nodeName.toLowerCase().contains(input.toLowerCase())) { result.add(nodeName); } } ===================================== console/frontend/src/main/java/org/hippoecm/frontend/plugins/console/menu/property/PropertyDialog.java ===================================== --- a/console/frontend/src/main/java/org/hippoecm/frontend/plugins/console/menu/property/PropertyDialog.java +++ b/console/frontend/src/main/java/org/hippoecm/frontend/plugins/console/menu/property/PropertyDialog.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2016 Hippo B.V. (http://www.onehippo.com) + * Copyright 2008-2017 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -316,7 +316,7 @@ public class PropertyDialog extends AbstractDialog<Node> { protected Iterator<String> getChoices(String input) { List<String> result = new ArrayList<>(); for (String propName : choiceModel.getObject().keySet()) { - if (propName.contains(input)) { + if (propName.toLowerCase().contains(input.toLowerCase())) { result.add(propName); } } View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms/compare/0b85d94dc15f31b5c1cb8bcb12347ff6187e8db7...35cdfe224f0aaf7269805b884c4d3f2fd9069de5
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn