Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)

91480: Correction for 5.0 specific merge of MNT-12824


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@94801 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-01-31 11:25:27 +00:00
parent 5a137789b3
commit a646563680

View File

@@ -537,7 +537,7 @@ function splitQNamePath(node, rootNodeDisplayPath, rootNodeQNamePath, qnameOnly)
{
// Decode the Site ID from the qname path using the util method - as we may not have displayPath
// the displayPath will look something like this: ["", "Company Home", "Sites", "MySite", "documentLibrary", "MyFolder"]
var siteQName = Packages.org.alfresco.util.ISO9075.decode(qpathUnderSitesFolder.substring(positionContainer));
var siteQName = Packages.org.alfresco.util.ISO9075.decode(qpathUnderSitesFolder.substring(0, positionContainer));
siteId = siteQName.substring(siteQName.indexOf(":") + 1);
var qpathContainer = qpathUnderSitesFolder.substring(positionContainer + 1);
var positionUnderContainer = qpathContainer.indexOf("/");