dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21509
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10192: minor fix
------------------------------------------------------------
revno: 10192
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-03-14 11:06:49 +0700
message:
minor fix
modified:
dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/DefaultDataValueSetService.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-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/DefaultDataValueSetService.java'
--- dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/DefaultDataValueSetService.java 2013-03-14 03:45:19 +0000
+++ dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/DefaultDataValueSetService.java 2013-03-14 04:06:49 +0000
@@ -255,11 +255,7 @@
Map<String, OrganisationUnit> orgUnitMap = new HashMap<String, OrganisationUnit>();
- if ( !orgUnitIdScheme.equals( IdentifiableProperty.UUID ) )
- {
- identifiableObjectManager.getIdMap( OrganisationUnit.class, orgUnitIdScheme );
- }
- else
+ if ( orgUnitIdScheme == IdentifiableProperty.UUID )
{
Collection<OrganisationUnit> allOrganisationUnits = organisationUnitService.getAllOrganisationUnits();
@@ -268,6 +264,10 @@
orgUnitMap.put( organisationUnit.getUuid(), organisationUnit );
}
}
+ else
+ {
+ orgUnitMap = identifiableObjectManager.getIdMap( OrganisationUnit.class, orgUnitIdScheme );
+ }
Map<String, DataElementCategoryOptionCombo> categoryOptionComboMap = identifiableObjectManager.getIdMap( DataElementCategoryOptionCombo.class, IdentifiableProperty.UID );
Map<String, Period> periodMap = new HashMap<String, Period>();