=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2014-02-09 16:23:59 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2014-02-19 18:57:57 +0000 @@ -8570,9 +8570,9 @@ // root nodes requests.push({ - url: init.contextPath + '/api/organisationUnits.json?level=1&paging=false&links=false&viewClass=detailed', + url: init.contextPath + '/api/organisationUnits/filtered.json?userDataViewFallback=true&include=id,name,children[id,name]', success: function(r) { - init.rootNodes = Ext.decode(r.responseText).organisationUnits || []; + init.rootNodes = Ext.decode(r.responseText).objects || []; fn(); } }); === modified file 'dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js' --- dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js 2014-02-09 17:36:50 +0000 +++ dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js 2014-02-19 18:57:57 +0000 @@ -5744,9 +5744,9 @@ // root nodes requests.push({ - url: init.contextPath + '/api/organisationUnits.json?level=1&paging=false&links=false&viewClass=detailed', + url: init.contextPath + '/api/organisationUnits/filtered.json?userDataViewFallback=true&include=id,name,children[id,name]', success: function(r) { - init.rootNodes = Ext.decode(r.responseText).organisationUnits || []; + init.rootNodes = Ext.decode(r.responseText).objects || []; fn(); } }); === modified file 'dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/scripts/app.js' --- dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/scripts/app.js 2014-02-06 11:09:49 +0000 +++ dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/scripts/app.js 2014-02-19 18:57:57 +0000 @@ -5342,9 +5342,9 @@ // root nodes requests.push({ - url: init.contextPath + '/api/organisationUnits.json?level=1&paging=false&links=false&viewClass=detailed', + url: init.contextPath + '/api/organisationUnits/filtered.json?userDataViewFallback=true&include=id,name,children[id,name]', success: function(r) { - init.rootNodes = Ext.decode(r.responseText).organisationUnits || []; + init.rootNodes = Ext.decode(r.responseText).objects || []; fn(); } });