Merged 5.2.0 (5.2.0) to HEAD (5.2)

134154 mward: Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
      134111 mward: REPO-1780: always use the primary parent ID regardless of context


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@134209 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2017-01-11 10:37:58 +00:00
parent 129c26f44d
commit ee2d26c947
2 changed files with 56 additions and 1 deletions

View File

@@ -1295,7 +1295,8 @@ public class NodesImpl implements Nodes
FileInfo fInfo = page.get(index);
// minimal info by default (unless "include"d otherwise)
return getFolderOrDocument(fInfo.getNodeRef(), parentNodeRef, fInfo.getType(), includeParam, mapUserInfo);
// (pass in null as parentNodeRef to force loading of primary parent node as parentId)
return getFolderOrDocument(fInfo.getNodeRef(), null, fInfo.getType(), includeParam, mapUserInfo);
}
@Override