dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15275
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5459: minor fixes
------------------------------------------------------------
revno: 5459
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-12-16 18:14:10 +0100
message:
minor fixes
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/MessageConversationController.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/api/controller/MessageConversationController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/MessageConversationController.java 2011-12-16 16:55:21 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/MessageConversationController.java 2011-12-16 17:14:10 +0000
@@ -27,7 +27,6 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-import org.apache.commons.io.IOUtils;
import org.hisp.dhis.api.utils.IdentifiableObjectParams;
import org.hisp.dhis.api.utils.WebLinkPopulator;
import org.hisp.dhis.api.view.Jaxb2Utils;
@@ -127,10 +126,8 @@
int id = messageService.sendMessage( message.getSubject(), message.getText(), metaData, message.getUsers() );
MessageConversation m = messageService.getMessageConversation( id );
- System.err.println( "uid: " + m.getUid() );
-
response.setStatus( HttpServletResponse.SC_CREATED );
- response.setHeader( "Location", DataElementController.RESOURCE_PATH + "/" + m.getUid() );
+ response.setHeader( "Location", MessageConversationController.RESOURCE_PATH + "/" + m.getUid() );
}
@RequestMapping( method = RequestMethod.POST, headers = {"Content-Type=application/json"} )