← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1945: Modified DataValuAuditDeletionHandler to delete AuditValues when beloning DataValues are deleted.

 

------------------------------------------------------------
revno: 1945
committer: Lars <larshelg@larshelg-laptop>
branch nick: trunk
timestamp: Tue 2010-06-01 15:36:31 +0200
message:
  Modified DataValuAuditDeletionHandler to delete AuditValues when beloning DataValues are deleted.
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/datavalue/DataValueAuditDeletionHandler.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-core/src/main/java/org/hisp/dhis/datavalue/DataValueAuditDeletionHandler.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/datavalue/DataValueAuditDeletionHandler.java	2010-04-21 14:32:54 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/datavalue/DataValueAuditDeletionHandler.java	2010-06-01 13:36:31 +0000
@@ -59,9 +59,9 @@
     }
 
     @Override
-    public boolean allowDeleteDataValue( DataValue dataValue )
+    public void deleteDataValue( DataValue dataValue )
     {
-        return dataValueAuditService.getDataValueAuditByDataValue( dataValue ).size() == 0;
+        dataValueAuditService.deleteDataValueAuditByDataValue( dataValue );
     }
 
 }