← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8884: mobile: possible bugfix for dvs issues..

 

------------------------------------------------------------
revno: 8884
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-11-05 16:33:46 +0100
message:
  mobile: possible bugfix for dvs issues..
modified:
  dhis-2/dhis-web/dhis-web-mobile/src/main/resources/dhis-mobile-manifest.appcache
  dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/dhis-web-mobile-resources/js/dhis2.storage.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-mobile/src/main/resources/dhis-mobile-manifest.appcache'
--- dhis-2/dhis-web/dhis-web-mobile/src/main/resources/dhis-mobile-manifest.appcache	2012-11-05 14:59:48 +0000
+++ dhis-2/dhis-web/dhis-web-mobile/src/main/resources/dhis-mobile-manifest.appcache	2012-11-05 15:33:46 +0000
@@ -1,5 +1,5 @@
 CACHE MANIFEST
-# Version: 31
+# Version: 32
 
 CACHE:
 ../mobile/index

=== modified file 'dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/dhis-web-mobile-resources/js/dhis2.storage.js'
--- dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/dhis-web-mobile-resources/js/dhis2.storage.js	2012-11-05 14:59:48 +0000
+++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/dhis-web-mobile-resources/js/dhis2.storage.js	2012-11-05 15:33:46 +0000
@@ -101,7 +101,7 @@
 dhis2.storage.FormManager.prototype.dataValueSets = function() {
     var dataValueSets = localStorage.getItem('dataValueSets');
 
-    if( dataValueSets != null && dataValueSets != "null" )
+    if( dataValueSets != null && dataValueSets != "null" && !$.isArray(dataValueSets))
     {
         dataValueSets = JSON.parse( dataValueSets );
     } else {