diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/tei/query/TeiFields.java b/dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/tei/query/TeiFields.java index 058cc13ff405..5c962b37c6c2 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/tei/query/TeiFields.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/tei/query/TeiFields.java @@ -191,16 +191,14 @@ private static Stream> getEligibleParsedHead /** * Checks if the given {@link DimensionIdentifier} is eligible to be added as a header. It is - * eligible if it is a static dimension and it is either an event or enrollment dimension, and it - * is not a TEI static field (which is already added to the grid headers). + * eligible if it is a static dimension and it is either an event or enrollment dimension. * * @param parsedHeader the {@link DimensionIdentifier}. * @return true if it is eligible, false otherwise. */ private static boolean isEligible(DimensionIdentifier parsedHeader) { return parsedHeader.getDimension().isStaticDimension() - && (parsedHeader.isEventDimension() || parsedHeader.isEnrollmentDimension()) - && !parsedHeader.getDimension().getStaticDimension().isTeiStaticField(); + && (parsedHeader.isEventDimension() || parsedHeader.isEnrollmentDimension()); } /**