From 936c00cda407d2cd5cf039d04b98cac8a1888da0 Mon Sep 17 00:00:00 2001 From: Kheireddine Mehdi Date: Tue, 10 Mar 2026 09:20:00 +0100 Subject: [PATCH] fix(crm): prevent infinite loop when StateAdministration parent is itself --- .../src/main/resources/domains/StateAdministration.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml b/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml index 3c8f413..dbe5be1 100644 --- a/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml +++ b/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml @@ -21,12 +21,18 @@ while (current != null && current.getName() != null) { + if (current == current.getParent()) { + break; + } + if (fullName.isEmpty()) { fullName = current.getName(); } else { fullName = current.getName() + " - " + fullName; } + + current = current.getParent(); }