ALF-11435: Files missed from merge in r32388

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32742 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Dave Ward
2011-12-13 19:31:58 +00:00
parent c7818043dd
commit 452b534cf6

View File

@@ -458,6 +458,8 @@ public class SearchContext implements Serializable
query = "(" + pathQuery + ") AND (" + query + ')'; query = "(" + pathQuery + ") AND (" + query + ')';
} }
query = query + " AND NOT ASPECT:\"sys:hidden\" ";
// check that we have a query worth executing - if we have no attributes, paths or text/name search // check that we have a query worth executing - if we have no attributes, paths or text/name search
// then we'll only have a search against files/type TYPE which does nothing by itself! // then we'll only have a search against files/type TYPE which does nothing by itself!
validQuery = validQuery | (attributeQuery != null) | (pathQuery != null); validQuery = validQuery | (attributeQuery != null) | (pathQuery != null);