dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15160
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5364: Fixed compilation error
------------------------------------------------------------
revno: 5364
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-12-12 10:56:06 +0100
message:
Fixed compilation error
modified:
dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java
dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonFacilitiesAction.java
dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonWithValuesAction.java
dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetOrganisationUnitChildrenAction.java
dhis-2/dhis-web/dhis-web-visualizer/src/main/java/org/hisp/dhis/visualizer/action/GetOrganisationUnitChildrenAction.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-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java 2011-12-02 13:24:16 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonAction.java 2011-12-12 09:56:06 +0000
@@ -94,7 +94,7 @@
{
OrganisationUnit parent = organisationUnitService.getOrganisationUnit( parentId );
- level = level == null ? organisationUnitService.getLevelOfOrganisationUnit( parent ) : level;
+ level = level == null ? organisationUnitService.getLevelOfOrganisationUnit( parent.getId() ) : level;
Collection<OrganisationUnit> organisationUnits = organisationUnitService.getOrganisationUnitsAtLevel( level,
parent );
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonFacilitiesAction.java'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonFacilitiesAction.java 2011-11-16 08:36:37 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonFacilitiesAction.java 2011-12-12 09:56:06 +0000
@@ -110,7 +110,7 @@
{
OrganisationUnit parent = organisationUnitService.getOrganisationUnit( parentId );
- level = level == null ? organisationUnitService.getLevelOfOrganisationUnit( parent ) : level;
+ level = level == null ? organisationUnitService.getLevelOfOrganisationUnit( parent.getId() ) : level;
Collection<OrganisationUnit> organisationUnits = organisationUnitService.getOrganisationUnitsAtLevel( level,
parent );
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonWithValuesAction.java'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonWithValuesAction.java 2011-12-05 13:32:32 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetGeoJsonWithValuesAction.java 2011-12-12 09:56:06 +0000
@@ -124,7 +124,7 @@
{
OrganisationUnit parent = organisationUnitService.getOrganisationUnit( parentId );
- level = level == null ? organisationUnitService.getLevelOfOrganisationUnit( parent ) : level;
+ level = level == null ? organisationUnitService.getLevelOfOrganisationUnit( parent.getId() ) : level;
Collection<OrganisationUnit> organisationUnits = organisationUnitService.getOrganisationUnitsAtLevel( level,
parent );
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetOrganisationUnitChildrenAction.java'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetOrganisationUnitChildrenAction.java 2010-11-17 16:20:22 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/GetOrganisationUnitChildrenAction.java 2011-12-12 09:56:06 +0000
@@ -101,7 +101,7 @@
{
OrganisationUnit unit = organisationUnitService.getOrganisationUnit( node );
- int level = organisationUnitService.getLevelOfOrganisationUnit( unit ) + 1;
+ int level = organisationUnitService.getLevelOfOrganisationUnit( unit.getId() ) + 1;
if ( unit != null )
{
=== modified file 'dhis-2/dhis-web/dhis-web-visualizer/src/main/java/org/hisp/dhis/visualizer/action/GetOrganisationUnitChildrenAction.java'
--- dhis-2/dhis-web/dhis-web-visualizer/src/main/java/org/hisp/dhis/visualizer/action/GetOrganisationUnitChildrenAction.java 2011-09-14 08:52:13 +0000
+++ dhis-2/dhis-web/dhis-web-visualizer/src/main/java/org/hisp/dhis/visualizer/action/GetOrganisationUnitChildrenAction.java 2011-12-12 09:56:06 +0000
@@ -101,7 +101,7 @@
{
OrganisationUnit unit = organisationUnitService.getOrganisationUnit( node );
- int level = organisationUnitService.getLevelOfOrganisationUnit( unit ) + 1;
+ int level = organisationUnitService.getLevelOfOrganisationUnit( unit.getId() ) + 1;
if ( unit != null )
{