Fix an issue in showing removed templates in list call.

This commit is contained in:
Min Chen 2013-05-07 16:44:05 -07:00
parent bc97dbde52
commit e8c69632b6
1 changed files with 3 additions and 0 deletions

View File

@ -2681,6 +2681,9 @@ public class QueryManagerImpl extends ManagerBase implements QueryService {
sc.addAnd("templateType", SearchCriteria.Op.NEQ, Storage.TemplateType.SYSTEM);
}
// don't return removed template
sc.addAnd("removed", SearchCriteria.Op.NULL);
// search unique templates and find details by Ids
Pair<List<TemplateJoinVO>, Integer> uniqueTmplPair = _templateJoinDao.searchAndCount(sc, searchFilter);
Integer count = uniqueTmplPair.second();