← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17229: set NO_CONTENT on TrackedEntityAttribute PUT (unless there is an error)

 

------------------------------------------------------------
revno: 17229
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-10-23 15:23:55 +0700
message:
  set NO_CONTENT on TrackedEntityAttribute PUT (unless there is an error)
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/event/TrackedEntityAttributeController.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/src/main/java/org/hisp/dhis/webapi/controller/event/TrackedEntityAttributeController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/event/TrackedEntityAttributeController.java	2014-10-23 08:21:50 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/event/TrackedEntityAttributeController.java	2014-10-23 08:23:55 +0000
@@ -159,6 +159,7 @@
         newTrackedEntityAttribute.setUid( trackedEntityAttribute.getUid() );
         trackedEntityAttribute.mergeWith( newTrackedEntityAttribute );
 
+        response.setStatus( HttpServletResponse.SC_NO_CONTENT );
         trackedEntityAttributeService.updateTrackedEntityAttribute( trackedEntityAttribute );
     }
 
@@ -178,6 +179,7 @@
         newTrackedEntityAttribute.setUid( trackedEntityAttribute.getUid() );
         trackedEntityAttribute.mergeWith( newTrackedEntityAttribute );
 
+        response.setStatus( HttpServletResponse.SC_NO_CONTENT );
         trackedEntityAttributeService.updateTrackedEntityAttribute( trackedEntityAttribute );
     }