dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #34926
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17915: check and see if dataset version exists for dataset
------------------------------------------------------------
revno: 17915
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-01-08 19:24:10 +0700
message:
check and see if dataset version exists for dataset
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 2014-12-12 19:34:37 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2015-01-08 12:24:10 +0000
@@ -2194,7 +2194,7 @@
$.safeEach( formIds, function( idx, item )
{
- var remoteVersion = dhis2.de.dataSets[item].version;
+ var remoteVersion = dhis2.de.dataSets[item] == null ? null : dhis2.de.dataSets[item].version;
var localVersion = formVersions[item];
if ( remoteVersion == null || localVersion == null || remoteVersion != localVersion )