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

Commit

Permalink
Merge branch 'release' into integration/master
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Nov 14, 2012
2 parents e19b520 + be10565 commit 03cb254
Showing 1 changed file with 10 additions and 2 deletions.
Expand Up @@ -173,6 +173,8 @@ private List<HTextFlow> findTextFlowsWithDatabaseSearch(String projectSlug, Stri
// source strings, because there may not be HTextFlowTarget for the
// HTextFlow.

// FIXME constrain to only non-obsolete documents

HLocale loc = localeServiceImpl.getByLocaleId(validatedLocaleId);
Long locId = loc.getId();

Expand Down Expand Up @@ -398,7 +400,10 @@ private List<HTextFlow> findTextFlowsWithHibernateSearch(String projectSlug, Str
// manually check for case sensitive matches
if( !constraints.isCaseSensitive() || (constraints.isCaseSensitive() && contentIsValid(htft.getContents(), constraints)) )
{
resultList.add(htft.getTextFlow());
if (!htft.getTextFlow().getDocument().isObsolete())
{
resultList.add(htft.getTextFlow());
}
}
}
}
Expand Down Expand Up @@ -451,7 +456,10 @@ private List<HTextFlow> findTextFlowsWithHibernateSearch(String projectSlug, Str
// manually check for case sensitive matches
if( !constraints.isCaseSensitive() || (constraints.isCaseSensitive() && contentIsValid(htf.getContents(), constraints)) )
{
resultList.add(htf);
if (!htf.getDocument().isObsolete())
{
resultList.add(htf);
}
}
}
}
Expand Down

0 comments on commit 03cb254

Please sign in to comment.