dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30729
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15615: various bugfixes to fields filter
------------------------------------------------------------
revno: 15615
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-06-11 09:43:00 +0200
message:
various bugfixes to fields filter
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/Jackson2PropertyIntrospectorService.java
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/filter/DefaultFilterService.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-06-09 14:26:55 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/Jackson2PropertyIntrospectorService.java 2014-06-11 07:43:00 +0000
@@ -201,7 +201,10 @@
{
if ( method.isAnnotationPresent( JsonProperty.class ) )
{
- properties.add( new Property( klass, method, null ) );
+ if ( method.getGenericParameterTypes().length == 0 )
+ {
+ properties.add( new Property( klass, method, null ) );
+ }
}
}
=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/filter/DefaultFilterService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/filter/DefaultFilterService.java 2014-06-10 16:59:51 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/filter/DefaultFilterService.java 2014-06-11 07:43:00 +0000
@@ -164,7 +164,7 @@
}
Map fieldValue = fieldMap.get( fieldKey );
- updateFields( fieldValue, object );
+ updateFields( fieldValue, returnValue );
if ( fieldValue.isEmpty() )
{