=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java 2014-03-31 13:30:38 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java 2014-04-03 17:22:46 +0000 @@ -487,6 +487,15 @@ return groupSets; } + + /** + * Indicates whether this data set has a category combination which is different + * from the default category combination. + */ + public boolean hasCategoryCombo() + { + return categoryCombo != null && !DataElementCategoryCombo.DEFAULT_CATEGORY_COMBO_NAME.equals( categoryCombo.getName() ); + } // ------------------------------------------------------------------------- // Getters and setters === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonIdentifiableObjects.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonIdentifiableObjects.vm 2014-04-03 13:57:45 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonIdentifiableObjects.vm 2014-04-03 17:22:46 +0000 @@ -2,7 +2,7 @@ { "objects": [ #foreach( $object in $objects ) { - "id": $!{object.id}, + "id": "$!{object.id}", "uid": "$!{object.uid}", "name": "$!encoder.jsonEncode( ${object.displayName} )", "code": "$!encoder.jsonEncode( ${object.code} )", === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/resources/org/hisp/dhis/reporting/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-reporting/src/main/resources/org/hisp/dhis/reporting/i18n_module.properties 2014-04-02 12:33:53 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/resources/org/hisp/dhis/reporting/i18n_module.properties 2014-04-03 17:22:46 +0000 @@ -260,4 +260,5 @@ confirm_approval=Are you sure you want to approve this data set? confirm_unapproval=Are you sure you want to unapprove this data set? confirm_accept=Are you sure you want to accept this data set approval? -confirm_unaccept=Are you sure you want to unaccept this data set approval? \ No newline at end of file +confirm_unaccept=Are you sure you want to unaccept this data set approval? +approval_entity=Approval entity \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/dataApprovalForm.vm' --- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/dataApprovalForm.vm 2014-04-03 16:34:22 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/dataApprovalForm.vm 2014-04-03 17:22:46 +0000 @@ -61,7 +61,7 @@ - - - -
-
+ + +
+ + +
+ #parse( "dhis-web-commons/loader/loader.vm" ) === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/dataSetReportForm.vm' --- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/dataSetReportForm.vm 2014-04-02 15:07:20 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/dataSetReportForm.vm 2014-04-03 17:22:46 +0000 @@ -159,7 +159,7 @@
- +
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/dataApproval.js' --- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/dataApproval.js 2014-04-03 16:34:22 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/dataApproval.js 2014-04-03 17:22:46 +0000 @@ -47,11 +47,21 @@ dhis2.appr.displayCategoryOptionGroups = function( ou ) { + if ( !ou ) { + return; + } + var url = "getCategoryOptionGroups.action"; $.getJSON( url, {ou:ou}, function( json ) { + var html = ""; + $.each( json.objects, function( index, group ) { + html += ""; + } ); - } ): + $( "#categoryOptionGroupSection" ).show(); + $( "#categoryOptionGroupId" ).html( html ); + } ); } //------------------------------------------------------------------------------