mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix for now-missing children of versioned parents
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4766 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -422,6 +422,8 @@ public class NodeServiceImpl implements NodeService, VersionModel
|
||||
NodeRef childRef = childAssocRef.getChildRef();
|
||||
NodeRef referencedNode = (NodeRef)this.dbNodeService.getProperty(childRef, ContentModel.PROP_REFERENCE);
|
||||
|
||||
if (this.dbNodeService.exists(referencedNode) == true)
|
||||
{
|
||||
// get the qualified name of the frozen child association and filter out unwanted names
|
||||
QName qName = (QName)this.dbNodeService.getProperty(childRef, PROP_QNAME_ASSOC_QNAME);
|
||||
|
||||
@@ -443,6 +445,7 @@ public class NodeServiceImpl implements NodeService, VersionModel
|
||||
result.add(newChildAssocRef);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// sort the results so that the order appears to be exactly as it was originally
|
||||
Collections.sort(result);
|
||||
@@ -506,6 +509,8 @@ public class NodeServiceImpl implements NodeService, VersionModel
|
||||
NodeRef childRef = childAssocRef.getChildRef();
|
||||
NodeRef referencedNode = (NodeRef)this.dbNodeService.getProperty(childRef, ContentModel.PROP_REFERENCE);
|
||||
|
||||
if (this.dbNodeService.exists(referencedNode) == true)
|
||||
{
|
||||
// get the qualified type name of the frozen child association and filter out unwanted names
|
||||
QName qName = (QName)this.dbNodeService.getProperty(childRef, PROP_QNAME_ASSOC_TYPE_QNAME);
|
||||
|
||||
@@ -515,6 +520,7 @@ public class NodeServiceImpl implements NodeService, VersionModel
|
||||
result.add(newAssocRef);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user