← Back to team overview

dhis2-devs team mailing list archive

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

 

------------------------------------------------------------
revno: 5716
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-01-12 14:46:32 +0530
message:
  (mobile) minor fix
modified:
  dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/SaveSectionFormAction.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/dataentry/action/SaveSectionFormAction.java'
--- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/SaveSectionFormAction.java	2012-01-04 12:55:23 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/SaveSectionFormAction.java	2012-01-12 09:16:32 +0000
@@ -271,13 +271,13 @@
 
         Period period = periodService.getPeriodByExternalId( periodId );
 
-        String storedBy = currentUserService.getCurrentUsername();
-
         boolean needsValidation = false;
 
         dataSet = dataSetService.getDataSet( dataSetId );
 
-        if ( StringUtils.isNotBlank( storedBy ) )
+        String storedBy = currentUserService.getCurrentUsername();
+
+        if ( StringUtils.isBlank( storedBy ) )
         {
             storedBy = "[unknown]";
         }