=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java' --- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java 2016-01-04 10:49:18 +0000 +++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java 2016-01-04 10:50:22 +0000 @@ -287,7 +287,7 @@ columns.add( col ); } - for ( TrackedEntityAttribute attribute : table.getProgram().getTrackedEntityAttributes() ) + for ( TrackedEntityAttribute attribute : table.getProgram().getNonConfidentialTrackedEntityAttributes() ) { String dataType = getColumnType( attribute.getValueType() ); String dataClause = attribute.isNumericType() ? numericClause : attribute.isDateType() ? dateClause : ""; @@ -300,7 +300,7 @@ columns.add( col ); } - for ( TrackedEntityAttribute attribute : table.getProgram().getTrackedEntityAttributesWithLegendSet() ) + for ( TrackedEntityAttribute attribute : table.getProgram().getNonConfidentialTrackedEntityAttributesWithLegendSet() ) { String column = quote( attribute.getUid() + PartitionUtils.SEP + attribute.getLegendSet().getUid() ); String select = getSelectClause( attribute.getValueType() );