mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6039 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
parent
ecd81e37a2
commit
5120da0dc6
@ -115,9 +115,18 @@ public class ScriptActionExecuter extends ActionExecuterAbstractBase
|
|||||||
NodeRef scriptRef = (NodeRef)action.getParameterValue(PARAM_SCRIPTREF);
|
NodeRef scriptRef = (NodeRef)action.getParameterValue(PARAM_SCRIPTREF);
|
||||||
NodeRef spaceRef = this.serviceRegistry.getRuleService().getOwningNodeRef(action);
|
NodeRef spaceRef = this.serviceRegistry.getRuleService().getOwningNodeRef(action);
|
||||||
if (spaceRef == null)
|
if (spaceRef == null)
|
||||||
|
{
|
||||||
|
// the actionedUponNodeRef may actually be a space
|
||||||
|
if (this.serviceRegistry.getDictionaryService().isSubClass(
|
||||||
|
nodeService.getType(actionedUponNodeRef), ContentModel.TYPE_FOLDER))
|
||||||
|
{
|
||||||
|
spaceRef = actionedUponNodeRef;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
spaceRef = nodeService.getPrimaryParent(actionedUponNodeRef).getParentRef();
|
spaceRef = nodeService.getPrimaryParent(actionedUponNodeRef).getParentRef();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this.scriptLocation != null || (scriptRef != null && nodeService.exists(scriptRef) == true))
|
if (this.scriptLocation != null || (scriptRef != null && nodeService.exists(scriptRef) == true))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user