Merged 5.2.0 (5.2.0) to HEAD (5.2)

133188 ahind: Fix for     ACE-5615    Site cannot be found after several sites are created


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@133399 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-12-06 17:21:45 +00:00
parent 56f81c38b5
commit 8edcef3a38

View File

@@ -278,10 +278,10 @@ public class NodesMetaDataGet extends DeclarativeWebScript
List<String> ancestorPaths = new ArrayList<String>();
HashSet<String> ancestors = new HashSet<String>();
if(nodeMetaData.getPaths() != null)
{
StringBuilder ancestorPath = new StringBuilder();
{
for(Pair<Path, QName> pair : nodeMetaData.getPaths())
{
{
StringBuilder ancestorPath = new StringBuilder();
JSONObject o = new JSONObject();
o.put("path", solrSerializer.serializeValue(String.class, pair.getFirst()));
o.put("qname", solrSerializer.serializeValue(String.class, pair.getSecond()));