aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-be/src
diff options
context:
space:
mode:
authorOren Kleks <orenkle@amdocs.com>2018-08-30 09:59:43 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-30 09:59:43 +0000
commit1264763a33a936e20f2a115925db81aad7ee9ae2 (patch)
treee18e503426f5e8c086c552decbaa1cfebe5fb7ff /workflow-designer-be/src
parentc7da932b5cf0287a378c44fdbf917101bbf31021 (diff)
parent11bbf9c1157e4abe6e18fbef04d4ff50ed2d33a8 (diff)
Merge "Search Workflow by name case insensitive"
Diffstat (limited to 'workflow-designer-be/src')
-rw-r--r--workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
index a8998cce..9dd33132 100644
--- a/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
+++ b/workflow-designer-be/src/main/java/org/onap/sdc/workflow/services/impl/WorkflowManagerImpl.java
@@ -174,7 +174,8 @@ public class WorkflowManagerImpl implements WorkflowManager {
private static Predicate<Item> addSearchNameFilter(Predicate<Item> filter, String searchNameFilter) {
return filter
- .and(item -> searchNameFilter == null || item.getName().contains(searchNameFilter));
+ .and(item -> searchNameFilter == null ||
+ item.getName().toLowerCase().contains(searchNameFilter.toLowerCase()));
}
private static Predicate<Item> addVersionStatusFilter(Predicate<Item> filter, Set<VersionStatus> versionStatuses) {