dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20347
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9245: minor
------------------------------------------------------------
revno: 9245
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2012-12-09 19:55:20 +0300
message:
minor
modified:
dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/utils/ToFacilityConverter.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/utils/ToFacilityConverter.java'
--- dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/utils/ToFacilityConverter.java 2012-12-09 16:50:22 +0000
+++ dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/utils/ToFacilityConverter.java 2012-12-09 16:55:20 +0000
@@ -80,8 +80,8 @@
if ( organisationUnit.getCode() != null )
{
Identifier identifier = new Identifier();
- identifier.setAgency( "DHIS2" );
- identifier.setContext( "DHIS2_CODE" );
+ identifier.setAgency( Identifier.DHIS2_AGENCY );
+ identifier.setContext( Identifier.DHIS2_CODE_CONTEXT );
identifier.setId( organisationUnit.getCode() );
facility.getIdentifiers().add( identifier );