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 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') -%}