Browse Source

bug fix

master
XiaXiang 8 years ago
parent
commit
3ed13a85af
  1. 6
      designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java

6
designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java

@ -39,8 +39,10 @@ public class ActionSearchManager implements AlphaFineSearchProcessor {
List<UpdateActionModel> updateActions = UpdateActionManager.getUpdateActionManager().getUpdateActions(); List<UpdateActionModel> updateActions = UpdateActionManager.getUpdateActionManager().getUpdateActions();
for (UpdateActionModel updateActionModel : updateActions) { for (UpdateActionModel updateActionModel : updateActions) {
UpdateAction updateAction = updateActionModel.getAction(); UpdateAction updateAction = updateActionModel.getAction();
if (updateAction.getName() != null && updateAction.getName().toLowerCase().contains(searchText.toLowerCase())) { if (updateAction.getName() != null) {
filterModelList.add(new ActionModel(updateAction.getName() ,updateActionModel.getParentName(), updateAction)); 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) { if (filterModelList != null && filterModelList.size() >0) {

Loading…
Cancel
Save