Author: sascharodekamp
Date: Mon Apr 25 13:32:21 2011
New Revision: 1096474
URL:
http://svn.apache.org/viewvc?rev=1096474&view=revLog:
Fix - A fix for the Jackrabbit JSON Tree generation. The node tree was not properly determined because the method looked only for one node type.
Modified:
ofbiz/branches/jackrabbit20100709/applications/content/src/org/ofbiz/content/jcr/orm/OfbizRepositoryMappingJackrabbit.java
Modified: ofbiz/branches/jackrabbit20100709/applications/content/src/org/ofbiz/content/jcr/orm/OfbizRepositoryMappingJackrabbit.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20100709/applications/content/src/org/ofbiz/content/jcr/orm/OfbizRepositoryMappingJackrabbit.java?rev=1096474&r1=1096473&r2=1096474&view=diff==============================================================================
--- ofbiz/branches/jackrabbit20100709/applications/content/src/org/ofbiz/content/jcr/orm/OfbizRepositoryMappingJackrabbit.java (original)
+++ ofbiz/branches/jackrabbit20100709/applications/content/src/org/ofbiz/content/jcr/orm/OfbizRepositoryMappingJackrabbit.java Mon Apr 25 13:32:21 2011
@@ -389,7 +389,7 @@ public class OfbizRepositoryMappingJackr
JSONObject folder = new JSONObject();
Node node = nodeIterator.nextNode();
- if (node.getPrimaryNodeType().isNodeType(PROPERTY_FIELDS.FOLDER.getType())) {
+ if (node.getPrimaryNodeType().isNodeType(PROPERTY_FIELDS.FOLDER.getType()) || node.getPrimaryNodeType().isNodeType(PROPERTY_FIELDS.UNSTRUCTURED.getType())) {
attr.element("title", node.getName());
folder.element("data", attr);