dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27820
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13862: csd: don't set geocode if there are no valid coordinates
------------------------------------------------------------
revno: 13862
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-01-27 16:53:53 +0700
message:
csd: don't set geocode if there are no valid coordinates
modified:
dhis-2/dhis-web/dhis-web-ohie/src/main/java/org/hisp/dhis/web/ohie/csd/webapi/CsdController.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-ohie/src/main/java/org/hisp/dhis/web/ohie/csd/webapi/CsdController.java'
--- dhis-2/dhis-web/dhis-web-ohie/src/main/java/org/hisp/dhis/web/ohie/csd/webapi/CsdController.java 2014-01-27 09:46:20 +0000
+++ dhis-2/dhis-web/dhis-web-ohie/src/main/java/org/hisp/dhis/web/ohie/csd/webapi/CsdController.java 2014-01-27 09:53:53 +0000
@@ -363,12 +363,12 @@
geocode.setLongitude( coordinates.lng );
geocode.setLatitude( coordinates.lat );
+
+ facility.setGeocode( geocode );
}
catch ( NumberFormatException ignored )
{
}
-
- facility.setGeocode( geocode );
}
Record record = new Record();