fix(crm): prevent infinite loop when StateAdministration parent is itself

This commit is contained in:
Kheireddine Mehdi
2026-03-10 09:20:00 +01:00
parent 55e9f4455c
commit 936c00cda4

View File

@@ -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();
}