dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #26105
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12951: validate and set coordinate on eventStore
------------------------------------------------------------
revno: 12951
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-11-14 14:01:43 +0100
message:
validate and set coordinate on eventStore
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/DefaultEventStore.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-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/DefaultEventStore.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/DefaultEventStore.java 2013-11-14 12:55:15 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/DefaultEventStore.java 2013-11-14 13:01:43 +0000
@@ -148,6 +148,11 @@
catch ( IOException ignored )
{
}
+
+ if ( coordinate.isValid() )
+ {
+ event.setCoordinate( coordinate );
+ }
}
events.add( event );