=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/trackedentity/TrackedEntityAttributeSearchScope.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/trackedentity/TrackedEntityAttributeSearchScope.java 2016-02-29 11:22:40 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/trackedentity/TrackedEntityAttributeSearchScope.java 2016-03-07 10:32:45 +0000 @@ -34,32 +34,5 @@ */ public enum TrackedEntityAttributeSearchScope { - - NOT_SEARCHABLE( "not_searchable" ), OWN_OUS( "own_organisations" ), SEARCH_OUS( "search_organisations" ); - - private final String value; - - private TrackedEntityAttributeSearchScope( String value ) - { - this.value = value; - } - - public static TrackedEntityAttributeSearchScope fromValue( String value ) - { - for ( TrackedEntityAttributeSearchScope trackedEntityAttributeSearchScope : TrackedEntityAttributeSearchScope - .values() ) - { - if ( trackedEntityAttributeSearchScope.value.equalsIgnoreCase( value ) ) - { - return trackedEntityAttributeSearchScope; - } - } - - return null; - } - - public String getValue() - { - return value; - } + NOT_SEARCHABLE, DATA_CAPTURE_ORG_UNITS, SEARCH_ORG_UNITS, ALL_ORG_UNITS } === modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java 2016-02-29 11:22:40 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java 2016-03-07 10:32:45 +0000 @@ -259,7 +259,9 @@ executeSql( "UPDATE trackedentityattribute SET valuetype='number' WHERE valuetype='age'" ); executeSql( "update trackedentityattribute set searchscope='NOT_SEARCHABLE' where confidential=true" ); - executeSql( "update trackedentityattribute set searchscope='SEARCH_OUS' where searchscope is null" ); + executeSql( "update trackedentityattribute set searchscope='SEARCH_ORG_UNITS' where searchscope is null" ); + executeSql( "update trackedentityattribute set searchscope='SEARCH_ORG_UNITS' where searchscope='SEARCH_OUS'" ); + executeSql( "update trackedentityattribute set searchscope='DATA_CAPTURE_ORG_UNITS' where searchscope='OWN_OUS'" ); executeSql( "DROP TABLE orgunitgroupprograms" ); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/resources/org/hisp/dhis/trackedentity/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/resources/org/hisp/dhis/trackedentity/i18n_module.properties 2016-02-29 11:22:40 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/resources/org/hisp/dhis/trackedentity/i18n_module.properties 2016-03-07 10:32:45 +0000 @@ -549,5 +549,6 @@ not_available_for_search_and_analytics=Not available for search and analytics search_scope=Search scope not_searchable=Not searchable -within_own_ous=Within data capture organisations -within_search_ous=Within search organisations \ No newline at end of file +across_data_capture_orgunits=Across data capture organisation units +across_search_orgunits=Across search organisation units +across_all_orgunits=Across all organisation units \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addAttributeForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addAttributeForm.vm 2016-02-29 11:22:40 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addAttributeForm.vm 2016-03-07 10:32:45 +0000 @@ -93,8 +93,9 @@ === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateAttibuteForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateAttibuteForm.vm 2016-02-29 11:22:40 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateAttibuteForm.vm 2016-03-07 10:32:45 +0000 @@ -39,7 +39,7 @@ - @@ -90,8 +90,9 @@