=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js 2015-11-02 17:37:19 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core2.js 2015-11-02 17:40:19 +0000 @@ -798,13 +798,14 @@ }; Layout.prototype.url = function(isSorted) { - var axisDimensions = this.getDimensions(false, isSorted), - aggTypes = ['COUNT', 'SUM', 'STDDEV', 'VARIANCE', 'MIN', 'MAX'], + var aggTypes = ['COUNT', 'SUM', 'STDDEV', 'VARIANCE', 'MIN', 'MAX'], + //todo displayProperty = this.displayProperty || init.userAccount.settings.keyAnalysisDisplayProperty || 'name', + displayProperty = this.displayProperty || 'name', request = new NS.Api.Request(), i; // dimensions - for (i = 0, dimension; i < axisDimensions.length; i++) { + for (i = 0, axisDimensions = this.getDimensions(false, isSorted), dimension; i < axisDimensions.length; i++) { dimension = axisDimensions.length; request.add(dimension.url(isSorted));