← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3702: minor fix

 

------------------------------------------------------------
revno: 3702
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-05-23 00:01:34 +0200
message:
  minor fix
modified:
  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/IdentifiableObjectUtils.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-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/IdentifiableObjectUtils.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/IdentifiableObjectUtils.java	2011-05-22 19:09:48 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/IdentifiableObjectUtils.java	2011-05-22 22:01:34 +0000
@@ -52,8 +52,9 @@
         while ( iterator.hasNext() )
         {
             T object = iterator.next();
+            String name = ignoreCase ? object.getName().toLowerCase() : object.getName();
 
-            if ( object.getName().toLowerCase().indexOf( key ) != -1 )
+            if ( name.indexOf( key ) != -1 )
             {
                 objects.add( object );
             }