=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementsAction.java' --- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementsAction.java 2013-10-02 11:02:41 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementsAction.java 2013-10-03 08:36:23 +0000 @@ -195,8 +195,16 @@ } else if ( domain != null ) { - dataElements = new ArrayList( - dataElementService.getDataElementsByDomainType( DataElement.DOMAIN_TYPE_PATIENT ) ); + if ( domain.equals( DataElement.DOMAIN_TYPE_AGGREGATE ) ) + { + dataElements = new ArrayList( + dataElementService.getDataElementsByDomainType( DataElement.DOMAIN_TYPE_AGGREGATE ) ); + } + else + { + dataElements = new ArrayList( + dataElementService.getDataElementsByDomainType( DataElement.DOMAIN_TYPE_PATIENT ) ); + } } else { === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addDataSet.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addDataSet.vm 2013-09-30 11:24:38 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addDataSet.vm 2013-10-03 08:36:23 +0000 @@ -2,7 +2,7 @@