← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9198: Error when select param Use data from level as Children-Only in Tabular report.

 

------------------------------------------------------------
revno: 9198
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-12-07 18:41:53 +0700
message:
  Error when select param Use data from level as Children-Only in Tabular report.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateTabularReportAction.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-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateTabularReportAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateTabularReportAction.java	2012-11-14 05:52:34 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/report/GenerateTabularReportAction.java	2012-12-07 11:41:53 +0000
@@ -267,9 +267,9 @@
             for ( Integer orgunitId : orgunitIds )
             {
                 OrganisationUnit selectedOrgunit = organisationUnitService.getOrganisationUnit( orgunitId );
-                orgunitIds.addAll( organisationUnitService.getOrganisationUnitHierarchy().getChildren(
-                    selectedOrgunit.getId() ) );
-                orgunitIds.remove( orgunitId );
+                organisationUnits.addAll( organisationUnitService.getOrganisationUnitHierarchy().getChildren(
+                    orgunitId) );
+                organisationUnits.remove( selectedOrgunit );
             }
         }
         else