From 7e01d7de256a18051ed220e10aa7a136b41cfe9c Mon Sep 17 00:00:00 2001 From: Gavin Cornwell Date: Wed, 13 Oct 2010 13:49:38 +0000 Subject: [PATCH] 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 --- .../org/alfresco/repository/forms/pickerchildren.get.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/forms/pickerchildren.get.js b/config/alfresco/templates/webscripts/org/alfresco/repository/forms/pickerchildren.get.js index b694dbf983..e59152a1e4 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/forms/pickerchildren.get.js +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/forms/pickerchildren.get.js @@ -246,6 +246,13 @@ function isItemSelectable(node, selectableType) if (selectableType !== null && 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;