Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
rhbz842191 allow project-wide search to return results with no transl…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
davidmason committed Sep 12, 2012
1 parent 6b6f711 commit 896a1f8
Showing 1 changed file with 2 additions and 8 deletions.
Expand Up @@ -211,17 +211,11 @@ private List<HTextFlow> findTextFlowsByDocumentPaths(WorkspaceId workspace, List
@SuppressWarnings("unchecked")
List<HTextFlow> matchedSources = (List<HTextFlow>) ftQuery.getResultList();
log.info("got {} HTextFLow results", matchedSources.size());
HLocale hLocale = localeServiceImpl.getByLocaleId(localeId);
for (HTextFlow htf : matchedSources)
{
HTextFlowTarget htft = htf.getTargets().get(hLocale.getId());
if (htft != null && htft.getState() != ContentState.New)
if (!resultList.contains(htf))
{
// TODO filter other states?
if (!resultList.contains(htf))
{
resultList.add(htf);
}
resultList.add(htf);
}
}
}
Expand Down

0 comments on commit 896a1f8

Please sign in to comment.