dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33824
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17325: Approval, reload controller
------------------------------------------------------------
revno: 17325
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-10-31 12:29:35 -0400
message:
Approval, reload controller
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-31 15:23:23 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataApprovalController.java 2014-10-31 16:29:35 +0000
@@ -66,7 +66,6 @@
import org.hisp.dhis.period.Period;
import org.hisp.dhis.period.PeriodService;
import org.hisp.dhis.period.PeriodType;
-import org.hisp.dhis.system.util.CollectionUtils;
import org.hisp.dhis.user.CurrentUserService;
import org.hisp.dhis.user.User;
import org.hisp.dhis.user.UserService;
@@ -692,6 +691,7 @@
{
List<DataSet> dataSets = objectManager.getByUid( DataSet.class, approvals.getDs() );
List<Period> periods = PeriodType.getPeriodsFromIsoStrings( approvals.getPe() );
+ periods = periodService.reloadPeriods( periods );
User user = currentUserService.getCurrentUser();
Date date = new Date();