← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5043: (mobile) minor fix in data entry

 

------------------------------------------------------------
revno: 5043
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2011-10-26 13:58:19 +0200
message:
  (mobile) minor fix in data entry
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	2011-10-26 11:49:43 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/SaveSectionFormAction.java	2011-10-26 11:58:19 +0000
@@ -398,6 +398,11 @@
             registrationService.deleteCompleteDataSetRegistration( registration );
         }
 
+        if ( typeViolations.size() > 0 )
+        {
+            needsValidation = true;
+        }
+
         dataValues = sectionFormUtils.getDataValueMap( organisationUnit, dataSet, period );
 
         validationViolations = sectionFormUtils.getValidationViolations( organisationUnit, dataSet, period );