dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #13424
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4298: Fixed bug in StorageManager
------------------------------------------------------------
revno: 4298
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-08-15 12:48:36 +0200
message:
Fixed bug in StorageManager
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-15 10:35:59 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2011-08-15 10:48:36 +0000
@@ -958,7 +958,7 @@
*/
this.saveFormVersion = function( dataSetId, formVersion )
{
- var formVersions = [];
+ var formVersions = {};
if ( localStorage[KEY_FORM_VERSIONS] != null )
{
@@ -982,7 +982,7 @@
/**
* Returns the version of the form of the data set with the given identifier.
*
- * @param dataSetId the identifier of the data set of the form
+ * @param dataSetId the identifier of the data set of the form.
* @return the form version.
*/
this.getFormVersion = function( dataSetId )
@@ -1005,7 +1005,7 @@
/**
* Saves a data value.
*
- * @param dataValue The datavalue and identifiers in json format
+ * @param dataValue The datavalue and identifiers in json format.
*/
this.saveDataValueJSON = function( dataValue )
{