dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #38820
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19719: Analytics, fixed bug related to order of co param
------------------------------------------------------------
revno: 19719
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-08-05 16:08:21 +0200
message:
Analytics, fixed bug related to order of co param
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/DataQueryParams.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-analytics/src/main/java/org/hisp/dhis/analytics/DataQueryParams.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/DataQueryParams.java 2015-08-04 11:09:17 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/DataQueryParams.java 2015-08-05 14:08:21 +0000
@@ -1151,7 +1151,9 @@
}
else if ( CATEGORYOPTIONCOMBO_DIM_ID.equals( dimension.getDimension() ) )
{
- dimensions.add( CO_INDEX, dimension );
+ int index = !dimensions.isEmpty() && DATA_X_DIM_ID.equals( dimensions.get( 0 ).getDimension() ) ? CO_INDEX : DX_INDEX;
+
+ dimensions.add( index, dimension );
}
else
{