dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19321
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8373: Minor fix to ConfigurationDeletionHandler
------------------------------------------------------------
revno: 8373
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-10-04 16:25:26 +0200
message:
Minor fix to ConfigurationDeletionHandler
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/configuration/ConfigurationDeletionHandler.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/configuration/ConfigurationDeletionHandler.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/configuration/ConfigurationDeletionHandler.java 2012-01-03 06:08:25 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/configuration/ConfigurationDeletionHandler.java 2012-10-04 14:25:26 +0000
@@ -63,8 +63,7 @@
@Override
public String allowDeleteUserGroup( UserGroup userGroup )
{
- String sql = "SELECT COUNT(*) FROM configuration where feedbackrecipientsid=" + userGroup.getId()
- + " OR completenessrecipientsid=" + userGroup.getId();
+ String sql = "SELECT COUNT(*) FROM configuration where feedbackrecipientsid=" + userGroup.getId();
return jdbcTemplate.queryForInt( sql ) == 0 ? null : ERROR;
}