=== 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-09-29 21:12:44 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2014-09-29 21:58:23 +0000 @@ -1213,11 +1213,13 @@ /** * Tests to see if a category option is valid during a period. + * + * TODO properly check validity period + * TODO option.startDate == null || option.startDate <= dhis2.de.periodChoices[ period ].endDate */ dhis2.de.optionValidWithinPeriod = function( option, period ) { - return ( option.startDate == null || option.startDate <= dhis2.de.periodChoices[ period ].endDate ) - && ( option.endDate == null || option.endDate >= dhis2.de.periodChoices[ period ].startDate ) + return true; } /**