← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12902: fix bug for sending mass SMS

 

------------------------------------------------------------
revno: 12902
committer: Lai <lai.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-11-08 11:05:21 +0700
message:
  fix bug for sending mass SMS
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/DefaultSmsSender.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-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/DefaultSmsSender.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/DefaultSmsSender.java	2013-10-14 09:59:01 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/DefaultSmsSender.java	2013-11-08 04:05:21 +0000
@@ -121,6 +121,7 @@
 
         if ( transportService != null )
         {
+            message = createMessage( null, message, currentUserService.getCurrentUser() );
             String defaultGatewayId = transportService.getDefaultGateway();
             return transportService.sendMessage( new OutboundSms( message, phoneNumber ), defaultGatewayId );
         }