← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1979: Fixed bug: Dashboard links to jasper report issue

 

------------------------------------------------------------
revno: 1979
committer: Lars <larshelg@larshelg-laptop>
branch nick: trunk
timestamp: Fri 2010-08-27 07:22:53 +0200
message:
  Fixed bug: Dashboard links to jasper report issue
modified:
  dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/java/org/hisp/dhis/dashboard/provider/ReportContentProvider.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-dashboard-integration/src/main/java/org/hisp/dhis/dashboard/provider/ReportContentProvider.java'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/java/org/hisp/dhis/dashboard/provider/ReportContentProvider.java	2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/java/org/hisp/dhis/dashboard/provider/ReportContentProvider.java	2010-08-27 05:22:53 +0000
@@ -64,7 +64,7 @@
     
     private static final String SEPARATOR = "/";
     private static final String BASE_QUERY = "frameset?__report=";
-    private static final String JASPER_BASE_URL = "../dhis-web-reporting/renderReport.action?template=";
+    private static final String JASPER_BASE_URL = "../dhis-web-reporting/renderReport.action?id=";
     
     // -------------------------------------------------------------------------
     // Dependencies
@@ -127,7 +127,7 @@
             {
                 for ( Report report : reports )
                 {
-                    report.setUrl( JASPER_BASE_URL + report.getDesign() );
+                    report.setUrl( JASPER_BASE_URL + report.getId() );
                 }
             }
             else if ( framework.equals( TYPE_BIRT ) )