dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18777
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7958: Minor
------------------------------------------------------------
revno: 7958
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-08-22 18:17:24 +0200
message:
Minor
modified:
dhis-2/dhis-services/dhis-service-datamart-default/src/main/java/org/hisp/dhis/datamart/engine/DefaultDataMartEngine.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-datamart-default/src/main/java/org/hisp/dhis/datamart/engine/DefaultDataMartEngine.java'
--- dhis-2/dhis-services/dhis-service-datamart-default/src/main/java/org/hisp/dhis/datamart/engine/DefaultDataMartEngine.java 2012-08-22 16:13:29 +0000
+++ dhis-2/dhis-services/dhis-service-datamart-default/src/main/java/org/hisp/dhis/datamart/engine/DefaultDataMartEngine.java 2012-08-22 16:17:24 +0000
@@ -455,12 +455,12 @@
}
clock.logTime( "Aggregated data export done" );
-
- final boolean isGroups = organisationUnitGroups != null && organisationUnitGroups.size() > 0;
-
+
final int groupLevel = (Integer) systemSettingManager.getSystemSetting( KEY_ORGUNITGROUPSET_AGG_LEVEL, DEFAULT_ORGUNITGROUPSET_AGG_LEVEL );
- if ( isGroups && groupLevel > 0 )
+ final boolean isGroups = organisationUnitGroups != null && organisationUnitGroups.size() > 0 && groupLevel > 0;
+
+ if ( isGroups )
{
// ---------------------------------------------------------------------
// 1. Export data element values