dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17722
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7166: Minor fix
------------------------------------------------------------
revno: 7166
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-06-04 09:36:11 +0200
message:
Minor fix
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/attribute/AttributeValueDeletionHandler.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/attribute/AttributeValueDeletionHandler.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/attribute/AttributeValueDeletionHandler.java 2012-06-04 07:35:28 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/attribute/AttributeValueDeletionHandler.java 2012-06-04 07:36:11 +0000
@@ -30,6 +30,7 @@
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.organisationunit.OrganisationUnitGroup;
import org.hisp.dhis.system.deletion.DeletionHandler;
+import org.hisp.dhis.user.User;
import org.hisp.dhis.user.UserGroup;
import org.springframework.jdbc.core.JdbcTemplate;
@@ -111,6 +112,12 @@
}
@Override
+ public void deleteUser( User user )
+ {
+ removeAttributeValues( user.getAttributeValues() );
+ }
+
+ @Override
public void deleteUserGroup( UserGroup userGroup )
{
removeAttributeValues( userGroup.getAttributeValues() );