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 57449c2ba1
commit 7e01d7de25

View File

@@ -246,6 +246,13 @@ function isItemSelectable(node, selectableType)
if (selectableType !== null && selectableType !== "") if (selectableType !== null && selectableType !== "")
{ {
selectable = node.isSubType(selectableType); selectable = node.isSubType(selectableType);
if (!selectable)
{
// the selectableType could also be an aspect,
// if the node has that aspect it is selectable
selectable = node.hasAspect(selectableType);
}
} }
return selectable; return selectable;