← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17916: Data entry, minor

 

------------------------------------------------------------
revno: 17916
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-01-08 14:16:30 +0100
message:
  Data entry, minor
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	2015-01-08 12:24:10 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2015-01-08 13:16:30 +0000
@@ -2194,7 +2194,8 @@
 
         $.safeEach( formIds, function( idx, item )
         {
-            var remoteVersion = dhis2.de.dataSets[item] == null ? null : dhis2.de.dataSets[item].version;
+            var ds = dhis2.de.dataSets[item];
+            var remoteVersion = ds ? ds.version : null;
             var localVersion = formVersions[item];
 
             if ( remoteVersion == null || localVersion == null || remoteVersion != localVersion )