From e687286014eb2d59c7533319f7ae6de3fc83cdb8 Mon Sep 17 00:00:00 2001 From: Lukasz Ostafin Date: Fri, 13 Dec 2024 16:30:46 +0100 Subject: [PATCH] IBX-9285: Navigation anchor on content creation/edition not working with diacritical marks --- src/lib/Menu/ContentEditAnchorMenuBuilder.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/Menu/ContentEditAnchorMenuBuilder.php b/src/lib/Menu/ContentEditAnchorMenuBuilder.php index 82faa5974e..f7cd8671e5 100644 --- a/src/lib/Menu/ContentEditAnchorMenuBuilder.php +++ b/src/lib/Menu/ContentEditAnchorMenuBuilder.php @@ -104,9 +104,10 @@ private function getContentFieldGroupItems(array $groupedFields): array $order = 0; foreach ($groupedFields as $group => $fields) { $order += self::ITEM_ORDER_SPAN; + $groupNameASCII = transliterator_transliterate('Any-Latin; Latin-ASCII', $group); $items[$group] = $this->createMenuItem($group, [ 'attributes' => [ - 'data-target-id' => sprintf('ibexa-edit-content-sections-content-fields-%s', str_replace(' ', '-', mb_strtolower($group))), + 'data-target-id' => sprintf('ibexa-edit-content-sections-content-fields-%s', str_replace(' ', '-', mb_strtolower($groupNameASCII))), ], 'extras' => [ 'orderNumber' => $order, @@ -115,6 +116,8 @@ private function getContentFieldGroupItems(array $groupedFields): array } return $items; + + return $items; } /**