mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix AR-1505: onUpdateNode is not called for parents when child nodes are added or removed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5915 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -353,7 +353,6 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
|
||||
// Invoke policy behaviour
|
||||
invokeOnCreateNode(childAssocRef);
|
||||
invokeOnCreateNodeAssociation(childAssocRef);
|
||||
invokeOnUpdateNode(parentRef);
|
||||
if (propertiesAfter != null)
|
||||
{
|
||||
invokeOnUpdateProperties(childAssocRef.getChildRef(), propertiesBefore, propertiesAfter);
|
||||
@@ -472,8 +471,6 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
|
||||
{
|
||||
invokeOnCreateChildAssociation(newAssoc.getChildAssocRef());
|
||||
invokeOnDeleteChildAssociation(oldAssoc.getChildAssocRef());
|
||||
invokeOnUpdateNode(oldParentNode.getNodeRef());
|
||||
invokeOnUpdateNode(newParentRef);
|
||||
}
|
||||
invokeOnMoveNode(oldAssocRef, newAssocRef);
|
||||
|
||||
@@ -771,7 +768,6 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
|
||||
|
||||
// Invoke policy behaviours
|
||||
invokeOnCreateChildAssociation(assocRef);
|
||||
invokeOnUpdateNode(parentRef);
|
||||
|
||||
return assoc.getChildAssocRef();
|
||||
}
|
||||
@@ -813,9 +809,6 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
|
||||
deleteNode(primaryAssocRef.getChildRef());
|
||||
}
|
||||
|
||||
// Invoke policy behaviours
|
||||
invokeOnUpdateNode(parentRef);
|
||||
|
||||
// done
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user