← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13339: fix bug sms parser compare value with case sensitive

 

------------------------------------------------------------
revno: 13339
committer: Long <Long@Long-Laptop>
branch nick: dhis2
timestamp: Fri 2013-12-20 16:26:23 +0700
message:
  fix bug sms parser compare value with case sensitive
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/DataValueSMSListener.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/DataValueSMSListener.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/DataValueSMSListener.java	2013-12-19 18:12:57 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/DataValueSMSListener.java	2013-12-20 09:26:23 +0000
@@ -342,7 +342,7 @@
         //Check for special character cases
         for( SMSSpecialCharacter each: specialCharacters )
         {
-            if ( each.getName().equals( value ) )
+            if ( each.getName().equalsIgnoreCase( value ) )
             {
                 value = each.getValue();
                 break;