dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33679
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17237: minor NO_CONTENT fix
------------------------------------------------------------
revno: 17237
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-10-23 16:58:11 +0700
message:
minor NO_CONTENT fix
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AbstractCrudController.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/AbstractCrudController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AbstractCrudController.java 2014-10-23 08:08:15 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AbstractCrudController.java 2014-10-23 09:58:11 +0000
@@ -480,6 +480,7 @@
throw new DeleteAccessDeniedException( "You don't have the proper permissions to delete this object." );
}
+ response.setStatus( HttpServletResponse.SC_NO_CONTENT );
manager.delete( objects.get( 0 ) );
}
@@ -579,6 +580,8 @@
throw new DeleteAccessDeniedException( "You don't have the proper permissions to delete this object." );
}
+ response.setStatus( HttpServletResponse.SC_NO_CONTENT );
+
manager.update( objects.get( 0 ) );
manager.refresh( candidate );
}
@@ -648,6 +651,8 @@
throw new DeleteAccessDeniedException( "You don't have the proper permissions to delete this object." );
}
+ response.setStatus( HttpServletResponse.SC_NO_CONTENT );
+
manager.update( objects.get( 0 ) );
manager.refresh( candidate );
}