dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #28826
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14462: [mobile] return appropriate http status in sms input
------------------------------------------------------------
revno: 14462
committer: Long <long.hispvietnam@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2014-03-27 10:53:07 +0700
message:
[mobile] return appropriate http status in sms input
modified:
dhis-2/dhis-web/dhis-web-sms/src/main/resources/struts.xml
--
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-sms/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-sms/src/main/resources/struts.xml 2013-12-17 09:33:58 +0000
+++ dhis-2/dhis-web/dhis-web-sms/src/main/resources/struts.xml 2014-03-27 03:53:07 +0000
@@ -19,7 +19,11 @@
<action name="smsinput" class="org.hisp.dhis.sms.input.SMSInputAction">
<result name="success" type="velocity">/dhis-web-sms/smssuccess.vm</result>
- <result name="error" type="velocity">/dhis-web-sms/smserror.vm</result>
+ <!--<result name="error" type="velocity">/dhis-web-sms/smserror.vm</result>-->
+ <result name="error" type="httpheader">
+ <param name="error">500</param>
+ <param name="errorMessage">Unable to save sms</param>
+ </result>
</action>
<!-- Sending SMS Action -->