dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25874
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12847: fixed minor bug in fred api filter
------------------------------------------------------------
revno: 12847
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-11-01 09:52:57 +0100
message:
fixed minor bug in fred api filter
modified:
dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.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-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java'
--- dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java 2013-08-23 16:05:01 +0000
+++ dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java 2013-11-01 08:52:57 +0000
@@ -336,7 +336,7 @@
facilities.getFacilities().add( facility );
- if ( request.getRequestURL().toString().endsWith( ".json" ) )
+ if ( request.getRequestURL().toString().endsWith( ".json" ) && facility.getHref() != null )
{
facility.setHref( facility.getHref() + ".json" );
}