This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new a4b81baa4de0 Fix copy-paste error in camel-dhis2 Dhis2ResourceTables 
(#23173)
a4b81baa4de0 is described below

commit a4b81baa4de0313cccc0bc265c7c30636a8a99d9
Author: Ted Won <[email protected]>
AuthorDate: Wed May 13 15:27:56 2026 +1000

    Fix copy-paste error in camel-dhis2 Dhis2ResourceTables (#23173)
    
    Dhis2ResourceTables.analytics() checked skipEvents != null instead of
    skipAggregate != null when setting the skipAggregate parameter, causing
    it to be sent based on the wrong variable.
---
 .../java/org/apache/camel/component/dhis2/api/Dhis2ResourceTables.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-dhis2/camel-dhis2-api/src/main/java/org/apache/camel/component/dhis2/api/Dhis2ResourceTables.java
 
b/components/camel-dhis2/camel-dhis2-api/src/main/java/org/apache/camel/component/dhis2/api/Dhis2ResourceTables.java
index 72632d6f77da..8dac1e70eda4 100644
--- 
a/components/camel-dhis2/camel-dhis2-api/src/main/java/org/apache/camel/component/dhis2/api/Dhis2ResourceTables.java
+++ 
b/components/camel-dhis2/camel-dhis2-api/src/main/java/org/apache/camel/component/dhis2/api/Dhis2ResourceTables.java
@@ -35,7 +35,7 @@ public class Dhis2ResourceTables {
         if (skipEvents != null) {
             postOperation.withParameter("skipEvents", 
String.valueOf(skipEvents));
         }
-        if (skipEvents != null) {
+        if (skipAggregate != null) {
             postOperation.withParameter("skipAggregate", 
String.valueOf(skipAggregate));
         }
         if (lastYears != null) {

Reply via email to