=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js 2014-09-02 10:52:02 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js 2014-09-02 12:52:53 +0000 @@ -3388,7 +3388,7 @@ } else { Ext.Ajax.request({ - url: ns.core.init.contextPath + '/api/programs.json?filter=id:eq:' + programId + '&fields=programStages[id,name],programTrackedEntityAttributes[trackedEntityAttribute[id,name,valueType,optionSet[id,name]]]&paging=false', + url: ns.core.init.contextPath + '/api/programs.json?filter=id:eq:' + programId + '&fields=programStages[id,name],programTrackedEntityAttributes[trackedEntityAttribute[id,' + ns.core.init.namePropertyUrl + ',valueType,optionSet[id,name]]]&paging=false', success: function(r) { var program = Ext.decode(r.responseText).programs[0], stages, @@ -3491,7 +3491,7 @@ } else { Ext.Ajax.request({ - url: ns.core.init.contextPath + '/api/programStages.json?filter=id:eq:' + stageId + '&fields=programStageDataElements[dataElement[id,name,type,optionSet[id,name]]]', + url: ns.core.init.contextPath + '/api/programStages.json?filter=id:eq:' + stageId + '&fields=programStageDataElements[dataElement[id,' + ns.core.init.namePropertyUrl + ',type,optionSet[id,name]]]', success: function(r) { var objects = Ext.decode(r.responseText).programStages, dataElements; @@ -4634,7 +4634,7 @@ format: 'json', noCache: false, extraParams: { - fields: 'children[id,name,children::isNotEmpty|rename(hasChildren)&paging=false' + fields: 'children[id,' + ns.core.init.namePropertyUrl + ',children::isNotEmpty|rename(hasChildren)&paging=false' }, url: ns.core.init.contextPath + '/api/organisationUnits', reader: { @@ -5057,7 +5057,7 @@ return; } - path = '/organisationUnitGroups.json?fields=id,name&filter=organisationUnitGroupSet.id:eq:' + dimension.id + (filter ? '&filter=name:like:' + filter : ''); + path = '/organisationUnitGroups.json?fields=id,' + ns.core.init.namePropertyUrl + '&filter=organisationUnitGroupSet.id:eq:' + dimension.id + (filter ? '&filter=name:like:' + filter : ''); store.isPending = true; === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js 2014-09-02 11:00:54 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js 2014-09-02 12:52:53 +0000 @@ -3024,7 +3024,7 @@ } else { Ext.Ajax.request({ - url: ns.core.init.contextPath + '/api/programs.json?filter=id:eq:' + programId + '&fields=programStages[id,name],programTrackedEntityAttributes[trackedEntityAttribute[id,name,valueType,optionSet[id,name]]]&paging=false', + url: ns.core.init.contextPath + '/api/programs.json?filter=id:eq:' + programId + '&fields=programStages[id,name],programTrackedEntityAttributes[trackedEntityAttribute[id,' + ns.core.init.namePropertyUrl + ',valueType,optionSet[id,name]]]&paging=false', success: function(r) { var program = Ext.decode(r.responseText).programs[0], stages, @@ -3127,7 +3127,7 @@ } else { Ext.Ajax.request({ - url: ns.core.init.contextPath + '/api/programStages.json?filter=id:eq:' + stageId + '&fields=programStageDataElements[dataElement[id,name,type,optionSet[id,name]]]', + url: ns.core.init.contextPath + '/api/programStages.json?filter=id:eq:' + stageId + '&fields=programStageDataElements[dataElement[id,' + ns.core.init.namePropertyUrl + ',type,optionSet[id,name]]]', success: function(r) { var objects = Ext.decode(r.responseText).programStages, dataElements; @@ -4269,7 +4269,7 @@ format: 'json', noCache: false, extraParams: { - fields: 'children[id,name,children::isNotEmpty|rename(hasChildren)&paging=false' + fields: 'children[id,' + ns.core.init.namePropertyUrl + ',children::isNotEmpty|rename(hasChildren)&paging=false' }, url: ns.core.init.contextPath + '/api/organisationUnits', reader: { @@ -4687,7 +4687,7 @@ return; } - path = '/organisationUnitGroups.json?fields=id,name&filter=organisationUnitGroupSet.id:eq:' + dimension.id + (filter ? '&filter=name:like:' + filter : ''); + path = '/organisationUnitGroups.json?fields=id,' + ns.core.init.namePropertyUrl + '&filter=organisationUnitGroupSet.id:eq:' + dimension.id + (filter ? '&filter=name:like:' + filter : ''); store.isPending = true; === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js 2014-09-02 10:43:33 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js 2014-09-02 12:40:23 +0000 @@ -518,7 +518,7 @@ fields: ['id', 'name'], proxy: { type: 'ajax', - url: gis.init.contextPath + '/api/organisationUnitGroupSets.json?fields=id,name&paging=false', + url: gis.init.contextPath + '/api/organisationUnitGroupSets.json?fields=id,' + gis.init.namePropertyUrl + '&paging=false', reader: { type: 'json', root: 'organisationUnitGroupSets' @@ -551,7 +551,7 @@ fields: ['id', 'name'], proxy: { type: 'ajax', - url: init.contextPath + '/api/organisationUnitGroups.json?fields=id,name&paging=false', + url: init.contextPath + '/api/organisationUnitGroups.json?fields=id,' + gis.init.namePropertyUrl + '&paging=false', reader: { type: 'json', root: 'organisationUnitGroups' @@ -4302,7 +4302,7 @@ } else { Ext.Ajax.request({ - url: gis.init.contextPath + '/api/programStages.json?filter=id:eq:' + stageId + '&fields=programStageDataElements[dataElement[id,name,type,optionSet[id,name]]]', + url: gis.init.contextPath + '/api/programStages.json?filter=id:eq:' + stageId + '&fields=programStageDataElements[dataElement[id,' + gis.init.namePropertyUrl + ',type,optionSet[id,name]]]', success: function(r) { var objects = Ext.decode(r.responseText).programStages, dataElements; @@ -4698,7 +4698,7 @@ format: 'json', noCache: false, extraParams: { - fields: 'children[id,name,children::isNotEmpty|rename(hasChildren)&paging=false' + fields: 'children[id,' + gis.init.namePropertyUrl + ',children::isNotEmpty|rename(hasChildren)&paging=false' }, url: gis.init.contextPath + '/api/organisationUnits', reader: { @@ -5410,7 +5410,7 @@ format: 'json', noCache: false, extraParams: { - fields: 'children[id,name,children::isNotEmpty|rename(hasChildren)&paging=false' + fields: 'children[id,' + gis.init.namePropertyUrl + ',children::isNotEmpty|rename(hasChildren)&paging=false' }, url: gis.init.contextPath + '/api/organisationUnits', reader: { @@ -6166,7 +6166,7 @@ format: 'json', noCache: false, extraParams: { - fields: 'children[id,name,children::isNotEmpty|rename(hasChildren)&paging=false' + fields: 'children[id,' + gis.init.namePropertyUrl + ',children::isNotEmpty|rename(hasChildren)&paging=false' }, url: gis.init.contextPath + '/api/organisationUnits', reader: { @@ -6855,10 +6855,10 @@ var path; if (Ext.isString(uid)) { - path = '/dataElements.json?fields=id,name&domainType=aggregate&paging=false&filter=dataElementGroups.id:eq:' + uid; + path = '/dataElements.json?fields=id,' + gis.init.namePropertyUrl + '&domainType=aggregate&paging=false&filter=dataElementGroups.id:eq:' + uid; } else if (uid === 0) { - path = '/dataElements.json?fields=id,name&domainType=aggregate&paging=false'; + path = '/dataElements.json?fields=id,' + gis.init.namePropertyUrl + '&domainType=aggregate&paging=false'; } if (!path) { @@ -6892,7 +6892,7 @@ if (Ext.isString(uid)) { this.setProxy({ type: 'ajax', - url: gis.init.contextPath + '/api/dataElementOperands.json?fields=id,name&paging=false&filter=dataElement.dataElementGroups.id:eq:' + uid, + url: gis.init.contextPath + '/api/dataElementOperands.json?fields=id,' + gis.init.namePropertyUrl + '&paging=false&filter=dataElement.dataElementGroups.id:eq:' + uid, reader: { type: 'json', root: 'dataElementOperands' @@ -6934,7 +6934,7 @@ fields: ['id', 'name'], proxy: { type: 'ajax', - url: gis.init.contextPath + '/api/dataSets.json?fields=id,name&paging=false', + url: gis.init.contextPath + '/api/dataSets.json?fields=id,' + gis.init.namePropertyUrl + '&paging=false', reader: { type: 'json', root: 'dataSets' @@ -7084,7 +7084,7 @@ select: function() { indicator.clearValue(); - indicator.store.proxy.url = gis.init.contextPath + '/api/indicators.json?fields=id,name&paging=false&filter=indicatorGroups.id:eq:' + this.getValue(); + indicator.store.proxy.url = gis.init.contextPath + '/api/indicators.json?fields=id,' + gis.init.namePropertyUrl + '&paging=false&filter=indicatorGroups.id:eq:' + this.getValue(); indicator.store.load(); } } @@ -7503,7 +7503,7 @@ format: 'json', noCache: false, extraParams: { - fields: 'children[id,name,children::isNotEmpty|rename(hasChildren)&paging=false' + fields: 'children[id,' + gis.init.namePropertyUrl + ',children::isNotEmpty|rename(hasChildren)&paging=false' }, url: gis.init.contextPath + '/api/organisationUnits', reader: { === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js 2014-09-02 10:52:02 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js 2014-09-02 11:45:27 +0000 @@ -2854,7 +2854,7 @@ fields: ['id', 'name', 'index'], proxy: { type: 'ajax', - url: ns.core.init.contextPath + '/api/dataElementGroups.json?fields=id,name&paging=false', + url: ns.core.init.contextPath + '/api/dataElementGroups.json?fields=id,' + ns.core.init.namePropertyUrl + '&paging=false', reader: { type: 'json', root: 'dataElementGroups' === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js 2014-09-02 10:12:35 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js 2014-09-02 11:48:50 +0000 @@ -2841,7 +2841,7 @@ fields: ['id', 'name', 'index'], proxy: { type: 'ajax', - url: ns.core.init.contextPath + '/api/dataElementGroups.json?fields=id,name&paging=false', + url: ns.core.init.contextPath + '/api/dataElementGroups.json?fields=id,' + ns.core.init.namePropertyUrl + '&paging=false', reader: { type: 'json', root: 'dataElementGroups'