← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17526: minor fix

 

------------------------------------------------------------
revno: 17526
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-11-19 13:25:55 +0700
message:
  minor fix
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/Jackson2PropertyIntrospectorService.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/Jackson2PropertyIntrospectorService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/Jackson2PropertyIntrospectorService.java	2014-11-18 13:45:13 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/Jackson2PropertyIntrospectorService.java	2014-11-19 06:25:55 +0000
@@ -118,7 +118,7 @@
             }
 
             // This will be replaced later and fetched from hibernate mapping files instead
-            if ( property.isPersisted() && ("name".equals( fieldName ) || "code".equals( fieldName )) )
+            if ( property.isPersisted() && ("name".equals( fieldName ) || "code".equals( fieldName )) && IdentifiableObject.class.isAssignableFrom( clazz ) )
             {
                 IdentifiableObject identifiableObject;