← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4710: (mobile) minor bugfixes

 

------------------------------------------------------------
revno: 4710
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-09-27 12:41:31 +0200
message:
  (mobile) minor bugfixes
modified:
  dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/action/GetSectionFormAction.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-light/src/main/java/org/hisp/dhis/light/action/GetSectionFormAction.java'
--- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/action/GetSectionFormAction.java	2011-09-27 07:32:07 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/action/GetSectionFormAction.java	2011-09-27 10:41:31 +0000
@@ -135,7 +135,7 @@
     {
         this.minMaxDataElementService = minMaxDataElementService;
     }
-    
+
     // -------------------------------------------------------------------------
     // Input & Output
     // -------------------------------------------------------------------------
@@ -225,8 +225,9 @@
     {
         OrganisationUnit organisationUnit = organisationUnitService.getOrganisationUnit( organisationUnitId );
 
-        Period period = periodService.reloadPeriod( PeriodType.createPeriodExternalId( periodId ) );
-        
+        Period period = PeriodType.createPeriodExternalId( periodId );
+        Period vPeriod = periodService.reloadPeriod( PeriodType.createPeriodExternalId( periodId ) );
+
         dataSet = dataSetService.getDataSet( dataSetId );
 
         for ( Section section : dataSet.getSections() )
@@ -244,7 +245,7 @@
                     if ( dataValue != null )
                     {
                         value = dataValue.getValue();
-                        validateDataElement( organisationUnit, dataElement, optionCombo, period, value );
+                        validateDataElement( organisationUnit, dataElement, optionCombo, vPeriod, value );
                     }
 
                     dataValues.put( key, value );