You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2013/08/20 13:52:31 UTC
svn commit: r1515787 -
/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
Author: fmui
Date: Tue Aug 20 11:52:30 2013
New Revision: 1515787
URL: http://svn.apache.org/r1515787
Log:
Browser bindig: fix for secondary type properties (2nd attempt(
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java?rev=1515787&r1=1515786&r2=1515787&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java Tue Aug 20 11:52:30 2013
@@ -1184,7 +1184,8 @@ public final class JSONConverter {
propDef = type.getPropertyDefinitions().get(property.getId());
}
if (propDef == null && typeCache != null && objectId != null && propertyMode != PropertyMode.CHANGE) {
- type = typeCache.getTypeDefinitionForObject(objectId);
+ typeCache.getTypeDefinitionForObject(objectId);
+ propDef = typeCache.getPropertyDefinition(property.getId());
}
String propId = (propertyMode == PropertyMode.QUERY ? property.getQueryName() : property.getId());