Browse Source

Merge pull request #279 in DESIGN/design from ~XIAOXIA/design-10:release/10.0 to release/10.0

* commit '15dc4d444f44a414a04586babca3ceb7fd3f3107':
  rt
  REPORT-9819 【10.0二轮回归】alphafine搜索模板打开后,再次搜索会增加多个重复模板的搜索结果
research/10.0
xiaoxia 6 years ago
parent
commit
1b4795735d
  1. 6
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java

6
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java

@ -77,8 +77,12 @@ public class RecentSearchManager implements AlphaFineSearchProvider {
recentModelList = getRecentModelList(searchText);
if (recentModelList != null && recentModelList.size() > 0) {
modelList.add(new MoreModel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_AlphaFine_Latest")));
}
if (recentModelList.size() > AlphaFineConstants.LATEST_SHOW_SIZE) {
modelList.addAll(recentModelList.subList(0, AlphaFineConstants.LATEST_SHOW_SIZE));
} else {
modelList.addAll(recentModelList);
}
}
return modelList;
}

Loading…
Cancel
Save