← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10978: Chart type check more robust

 

------------------------------------------------------------
revno: 10978
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-05-24 12:54:03 +0200
message:
  Chart type check more robust
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/chart/Chart.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/chart/Chart.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/chart/Chart.java	2013-05-14 21:14:22 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/chart/Chart.java	2013-05-24 10:54:03 +0000
@@ -259,12 +259,12 @@
         this.series = series;
         this.category = category;
         this.filterDimensions.clear();
-        this.filterDimensions.add( filter ); //TODO
+        this.filterDimensions.add( filter );
     }
 
     public boolean isType( String type )
     {
-        return this.type != null && this.type.equals( type );
+        return this.type != null && this.type.equalsIgnoreCase( type );
     }
 
     public boolean isTargetLine()