← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9147: Fixed bug with deletion of report

 

------------------------------------------------------------
revno: 9147
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-11-28 16:28:36 +0100
message:
  Fixed bug with deletion of report
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	2012-10-23 16:55:21 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/report/impl/DefaultReportService.java	2012-11-28 15:28:36 +0000
@@ -223,11 +223,7 @@
 
     public void deleteReport( Report report )
     {
-        if ( report != null )
-        {   
-            periodService.deleteRelativePeriods( report.getRelatives() );
-            reportStore.delete( report );
-        }
+        reportStore.delete( report );
     }
 
     public Collection<Report> getAllReports()