← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4383: minor logic change in hasLocalData

 

------------------------------------------------------------
revno: 4383
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-08-19 22:32:38 +0200
message:
  minor logic change in hasLocalData
modified:
  dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js


--
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-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2011-08-19 19:27:33 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2011-08-19 20:32:38 +0000
@@ -1376,11 +1376,11 @@
 	    var dataValues = this.getAllDataValues();
 	    var completeDataSets = this.getCompleteDataSets();
 
-	    if ( dataValues != null || completeDataSets != null )
+	    if ( dataValues == null && completeDataSets == null )
 	    {
-	        return true;
+	        return false;
 	    }
 
-	    return false;
+	    return true;
 	};
 }