dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21373
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10095: minor fix
------------------------------------------------------------
revno: 10095
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2013-03-09 09:35:22 +0300
message:
minor fix
modified:
dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.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/controller/FacilityController.java'
--- dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java 2013-03-08 15:17:40 +0000
+++ dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/controller/FacilityController.java 2013-03-09 06:35:22 +0000
@@ -577,12 +577,7 @@
}
}
- if ( organisationUnit == null )
- {
- return new ResponseEntity<String>( MessageResponseUtils.jsonMessage( HttpStatus.NOT_FOUND.toString(),
- "No object with that identifier exists." ), headers, HttpStatus.NOT_FOUND );
- }
- else if ( organisationUnitUpdate.getCode() != null )
+ if ( organisationUnitUpdate.getCode() != null )
{
OrganisationUnit ouByCode = organisationUnitService.getOrganisationUnitByCode( organisationUnitUpdate.getCode() );