Fixed ALF-5203, ALF-5126 & FORM-47: Explorer/Share - association picker should also allow search by aspect i.e. when the target of an association is an aspect and not a type.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23077 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2010-10-13 13:49:38 +00:00
parent 09df825d13
commit 329566d3e6

View File

@@ -1015,9 +1015,17 @@ public abstract class BaseAssociationEditor extends UIInput
}
else
{
// for all other types perform a lucene search
// for all other types/aspects perform a lucene search
StringBuilder query = new StringBuilder("+TYPE:\"");
if (assocDef.getTargetClass().isAspect())
{
query = new StringBuilder("+ASPECT:\"");
}
else
{
query = new StringBuilder("+TYPE:\"");
}
query.append(type);
query.append("\"");