dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23005
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11188: minor change
------------------------------------------------------------
revno: 11188
committer: Lai <lai.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-06-10 19:06:31 +0700
message:
minor change
modified:
dhis-2/dhis-services/dhis-service-sms/src/main/java/org/hisp/dhis/sms/outbound/SmsSender.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-sms/src/main/java/org/hisp/dhis/sms/outbound/SmsSender.java'
--- dhis-2/dhis-services/dhis-service-sms/src/main/java/org/hisp/dhis/sms/outbound/SmsSender.java 2013-06-10 11:42:40 +0000
+++ dhis-2/dhis-services/dhis-service-sms/src/main/java/org/hisp/dhis/sms/outbound/SmsSender.java 2013-06-10 12:06:31 +0000
@@ -35,6 +35,7 @@
import org.apache.commons.logging.LogFactory;
import org.hisp.dhis.message.MessageSender;
import org.hisp.dhis.sms.SmsServiceException;
+import org.hisp.dhis.sms.smslib.SmsLibService;
import org.hisp.dhis.user.CurrentUserService;
import org.hisp.dhis.user.User;
import org.hisp.dhis.user.UserService;
@@ -91,12 +92,12 @@
@Override
public String sendMessage( String subject, String text, User sender, Set<User> users, boolean forceSend )
{
- if ( transportService == null || SmsLibService.gatewayMap == null || SmsLibService.gatewayMap.get( "bulk_gw" ) == null )
+ String message = null;
+ if ( transportService == null || SmsLibService.gatewayMap == null )
{
- return null;
+ message = "No gateway";
+ return message;
}
-
- String message = null;
Set<User> toSendList = new HashSet<User>();