From 6ae5864076a2ee513db05c248e055324a95fe2b6 Mon Sep 17 00:00:00 2001 From: Lukasz Ostafin Date: Fri, 13 Dec 2024 16:30:46 +0100 Subject: [PATCH 1/2] IBX-9285: Navigation anchor on content creation/edition not working with diacritical marks --- .../Resources/views/themes/admin/ui/menu/anchor_menu.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/views/themes/admin/ui/menu/anchor_menu.html.twig b/src/bundle/Resources/views/themes/admin/ui/menu/anchor_menu.html.twig index ba902affde..05774bbab2 100644 --- a/src/bundle/Resources/views/themes/admin/ui/menu/anchor_menu.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/menu/anchor_menu.html.twig @@ -49,7 +49,7 @@ {%- if loop.first %} {%- set itemClass = itemClass ~ ' ibexa-anchor-navigation-menu__sections-item-btn--active' %} {%- endif %} - {%- do item.setAttribute('data-target-id', "#" ~ item.getAttribute('data-target-id')) -%} + {%- do item.setAttribute('data-target-id', "#" ~ item.getAttribute('data-target-id')|lower|slug) -%} {%- do item.setAttribute('class', (item.getAttribute('class') ~ ' ' ~ itemClass)|trim) -%} {%- do item.setAttribute('type', 'button') -%} {%- do item.setLabelAttribute('class', 'ibexa-anchor-navigation-menu__sections-item-btn-label') -%} From ecbc3d6eb3f463a73492bc306bb49dbe8bebedb1 Mon Sep 17 00:00:00 2001 From: Lukasz Ostafin Date: Thu, 19 Dec 2024 10:03:10 +0100 Subject: [PATCH 2/2] phpstan --- phpstan-baseline.neon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 29ca53b8d0..e4510a5551 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -621,7 +621,7 @@ parameters: path: src/bundle/Controller/ObjectStateController.php - - message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateCreateStruct\\:\\:\\$names \\(array\\\\) does not accept array\\\\.$#" + message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateCreateStruct\\:\\:\\$names \\(array\\\\) does not accept array\\\\.$#" count: 1 path: src/bundle/Controller/ObjectStateController.php @@ -656,7 +656,7 @@ parameters: path: src/bundle/Controller/ObjectStateGroupController.php - - message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateGroupCreateStruct\\:\\:\\$names \\(array\\\\) does not accept array\\\\.$#" + message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\ObjectState\\\\ObjectStateGroupCreateStruct\\:\\:\\$names \\(array\\\\) does not accept array\\\\.$#" count: 1 path: src/bundle/Controller/ObjectStateGroupController.php