← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3969: fixed bug, operand operator was doing case sensitive compare

 

------------------------------------------------------------
revno: 3969
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-06-21 12:21:16 +0300
message:
  fixed bug, operand operator was doing case sensitive compare
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/comparator/DataElementOperandNameComparator.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-api/src/main/java/org/hisp/dhis/dataelement/comparator/DataElementOperandNameComparator.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/comparator/DataElementOperandNameComparator.java	2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/comparator/DataElementOperandNameComparator.java	2011-06-21 09:21:16 +0000
@@ -40,6 +40,6 @@
     @Override
     public int compare( DataElementOperand o0, DataElementOperand o1 )
     {
-        return o0.getOperandName().compareTo( o1.getOperandName() );
+        return o0.getOperandName().compareToIgnoreCase( o1.getOperandName() );
     }
 }