mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -1015,9 +1015,17 @@ public abstract class BaseAssociationEditor extends UIInput
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// for all other types perform a lucene search
|
// for all other types/aspects perform a lucene search
|
||||||
|
|
||||||
StringBuilder query = new StringBuilder("+TYPE:\"");
|
StringBuilder query = new StringBuilder("+TYPE:\"");
|
||||||
|
if (assocDef.getTargetClass().isAspect())
|
||||||
|
{
|
||||||
|
query = new StringBuilder("+ASPECT:\"");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
query = new StringBuilder("+TYPE:\"");
|
||||||
|
}
|
||||||
|
|
||||||
query.append(type);
|
query.append(type);
|
||||||
query.append("\"");
|
query.append("\"");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user