dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16002
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5943: Fixed minor bug with ReportTableService
------------------------------------------------------------
revno: 5943
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-02-13 18:25:28 +0100
message:
Fixed minor bug with ReportTableService
modified:
dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.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/reporttable/impl/DefaultReportTableService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.java 2012-02-12 12:21:49 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/reporttable/impl/DefaultReportTableService.java 2012-02-13 17:25:28 +0000
@@ -130,7 +130,9 @@
OrganisationUnit organisationUnit = organisationUnitService.getOrganisationUnit( organisationUnitUid );
- return getReportTableGrid( reportTable.getId(), format, reportingPeriod, organisationUnit.getId() );
+ Integer organisationUnitId = organisationUnit != null ? organisationUnit.getId() : null;
+
+ return getReportTableGrid( reportTable.getId(), format, reportingPeriod, organisationUnitId );
}
public Grid getReportTableGrid( int id, I18nFormat format, Date reportingPeriod, Integer organisationUnitId )