dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33744
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17285: Approvals, fixed wrong call to method
------------------------------------------------------------
revno: 17285
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2014-10-25 23:20:14 +0200
message:
Approvals, fixed wrong call to method
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataApprovalController.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-api/src/main/java/org/hisp/dhis/webapi/controller/DataApprovalController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataApprovalController.java 2014-10-25 20:49:53 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataApprovalController.java 2014-10-25 21:20:14 +0000
@@ -523,13 +523,12 @@
try
{
- dataApprovalService.acceptData( getDataApprovalList( dataApproval ) );
+ dataApprovalService.unacceptData( getDataApprovalList( dataApproval ) );
}
catch ( DataApprovalException ex )
{
ContextUtils.conflictResponse( response, ex.getClass().getName() );
- }
- dataApprovalService.unacceptData( getDataApprovalList( dataApproval ) );
+ }
}
@PreAuthorize( "hasRole('ALL') or hasRole('F_ACCEPT_DATA_LOWER_LEVELS')" )