From 3ed13a85afe5584fb31704a085ca4062a641fa62 Mon Sep 17 00:00:00 2001 From: XiaXiang Date: Wed, 24 May 2017 19:24:55 +0800 Subject: [PATCH] bug fix --- .../alphafine/search/manager/ActionSearchManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java b/designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java index 12417f4d6b..6c35624f22 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java +++ b/designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java @@ -39,8 +39,10 @@ public class ActionSearchManager implements AlphaFineSearchProcessor { List updateActions = UpdateActionManager.getUpdateActionManager().getUpdateActions(); for (UpdateActionModel updateActionModel : updateActions) { UpdateAction updateAction = updateActionModel.getAction(); - if (updateAction.getName() != null && updateAction.getName().toLowerCase().contains(searchText.toLowerCase())) { - filterModelList.add(new ActionModel(updateAction.getName() ,updateActionModel.getParentName(), updateAction)); + if (updateAction.getName() != null) { + if (updateAction.getName().toLowerCase().contains(searchText.toLowerCase()) || updateActionModel.getParentName().toLowerCase().contains(searchText.toLowerCase())) { + filterModelList.add(new ActionModel(updateAction.getName(), updateActionModel.getParentName(), updateAction)); + } } } if (filterModelList != null && filterModelList.size() >0) {