From ca8a28bf0b94832431e843f44622e0ad40ab7c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Helge=20=C3=98verland?= Date: Fri, 10 Jan 2025 16:53:34 +0100 Subject: [PATCH] fix: Avoid setting path state in get method [DHIS2-18234] --- .../java/org/hisp/dhis/organisationunit/OrganisationUnit.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java b/dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java index 4ad96db1e95..6e5c21b42c7 100644 --- a/dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java +++ b/dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnit.java @@ -783,9 +783,7 @@ public String getPath() { Collections.reverse(pathList); - this.path = PATH_SEP + StringUtils.join(pathList, PATH_SEP); - - return this.path; + return PATH_SEP + StringUtils.join(pathList, PATH_SEP); } /**