diff --git a/src/ORM/Hierarchy/Hierarchy.php b/src/ORM/Hierarchy/Hierarchy.php index c9eff0c8183..d92f3588c6d 100644 --- a/src/ORM/Hierarchy/Hierarchy.php +++ b/src/ORM/Hierarchy/Hierarchy.php @@ -808,8 +808,9 @@ public function getTreeTitle(): string { $owner = $this->getOwner(); $title = $owner->MenuTitle ?: $owner->Title; + $title = Convert::raw2xml($title ?? ''); $owner->extend('updateTreeTitle', $title); - return Convert::raw2xml($title ?? ''); + return $title; } /**