From 9f65e4c4c22cec8a552c545f800fef5ce84eb6ae Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 18 Dec 2024 11:13:50 +1300 Subject: [PATCH] FIX Apply raw2xml before extension hook --- src/ORM/Hierarchy/Hierarchy.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } /**