=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.ajax.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.ajax.js 2011-06-14 08:17:39 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.ajax.js 2011-06-16 06:33:06 +0000 @@ -204,6 +204,12 @@ this.params, function( json ) { + if( json.operands.length == 0 ) + { + setInnerHTML( 'formulaText', "No dataelements to select" ); + return; + } + jQuery.each( json.operands, function(i, item){ target.append(''); });