=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java 2011-08-13 13:55:24 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java 2011-08-15 15:58:37 +0000 @@ -52,7 +52,6 @@ import org.hisp.dhis.dataset.comparator.SectionOrderComparator; import org.hisp.dhis.i18n.I18n; import org.hisp.dhis.options.displayproperty.DisplayPropertyHandler; -import org.hisp.dhis.organisationunit.OrganisationUnit; import com.opensymphony.xwork2.Action; @@ -159,13 +158,6 @@ return this.customDataEntryFormCode; } - private OrganisationUnit organisationUnit; - - public OrganisationUnit getOrganisationUnit() - { - return organisationUnit; - } - private List
sections; public List
getSections() @@ -208,13 +200,6 @@ return orderdCategoryOptionCombos; } - private List allOptionCombos = new ArrayList(); - - public List getAllOptionCombos() - { - return allOptionCombos; - } - private List orderedCategoryCombos = new ArrayList(); public List getOrderedCategoryCombos() @@ -222,13 +207,6 @@ return orderedCategoryCombos; } - private Map sectionIsMultiDimensional = new HashMap(); - - public Map getSectionIsMultiDimensional() - { - return sectionIsMultiDimensional; - } - private Map sectionCombos = new HashMap(); public Map getSectionCombos() @@ -275,8 +253,6 @@ { Collection optionCombos = categoryService.sortOptionCombos( categoryCombo ); - allOptionCombos.addAll( optionCombos ); - orderdCategoryOptionCombos.put( categoryCombo.getId(), optionCombos ); // ----------------------------------------------------------------- @@ -370,11 +346,6 @@ sectionCombos.put( section.getId(), sectionCategoryCombo.getId() ); } - if ( section.hasMultiDimensionalDataElement() ) - { - sectionIsMultiDimensional.put( section.getId(), true ); - } - for ( DataElementOperand operand : section.getGreyedFields() ) { greyedFields.put( operand.getDataElement().getId() + ":" + operand.getCategoryOptionCombo().getId(), === 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 14:09:44 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2011-08-15 15:58:37 +0000 @@ -855,6 +855,7 @@ return false; } + /* if ( MAX_SIZE_FORMS < this.totalFormSize() ) { this.deleteForm( dataSetId ); @@ -862,6 +863,7 @@ console.log( 'Max local storage quota for forms reached, ignored form: ' + dataSetId ); return false; } + * */ return true; } @@ -1079,7 +1081,8 @@ var id = this.getDataValueIdentifier( dataElementId, categoryOptionComboId, periodId, organisationUnitId ); var dataValues = this.getAllDataValues(); - if(dataValues[id] != null) { + if( dataValues[id] != null ) + { delete dataValues[id]; localStorage[KEY_DATAVALUES] = JSON.stringify( dataValues ); }