dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #14907
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5187: Reports, fixed bug related to org unit group set param in jasper reports
------------------------------------------------------------
revno: 5187
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-11-22 07:23:39 +0100
message:
Reports, fixed bug related to org unit group set param in jasper reports
modified:
dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/report/impl/DefaultReportService.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-reporting/src/main/java/org/hisp/dhis/report/impl/DefaultReportService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/report/impl/DefaultReportService.java 2011-10-12 17:32:39 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/report/impl/DefaultReportService.java 2011-11-22 06:23:39 +0000
@@ -132,13 +132,13 @@
{
ReportTable reportTable = report.getReportTable();
+ Grid grid = reportTableService.getReportTableGrid( reportTable.getId(), format, reportingPeriod, organisationUnitId );
+
if ( report.isUsingOrganisationUnitGroupSets() )
{
params.putAll( reportTable.getOrganisationUnitGroupMap( organisationUnitGroupService.getCompulsoryOrganisationUnitGroupSets() ) );
}
- Grid grid = reportTableService.getReportTableGrid( reportTable.getId(), format, reportingPeriod, organisationUnitId );
-
print = JasperFillManager.fillReport( jasperReport, params, grid );
}
else // Assume SQL report and provide JDBC connection