Skip to content

Commit

Permalink
IBX-4887: Content type group with space or '/' causes js an error in …
Browse files Browse the repository at this point in the history
…the BackOffice search (#710)
  • Loading branch information
GrabowskiM authored Feb 27, 2023
1 parent ffcc71a commit b1cb62d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,18 @@
<div class="ibexa-content-type-selector accordion">
{%- set groups = choices -%}
{%- for group_label, group_choices in groups -%}
{% set group_id = group_label|slug %}
<div class="ibexa-content-type-selector__group accordion-item">
<span class="ibexa-content-type-selector__group-title accordion-header">
<button type="button" class="accordion-button {% if not loop.first %} collapsed{% endif %}" data-bs-toggle="collapse" data-bs-target="#{{ group_label }}">
<button type="button" class="accordion-button {% if not loop.first %} collapsed{% endif %}" data-bs-toggle="collapse" data-bs-target="#{{ group_id }}">
{{ choice_translation_domain is same as(false) ? group_label : group_label|trans({}, choice_translation_domain) }}

<svg class="ibexa-icon ibexa-icon--tiny-small ibexa-icon--toggle">
<use xlink:href="{{ ibexa_icon_path('caret-down') }}"></use>
</svg>
</button>
</span>
<div class="ibexa-content-type-selector__list-wrapper accordion-collapse collapse{% if loop.first %} show{% endif %}" id="{{ group_label }}">
<div class="ibexa-content-type-selector__list-wrapper accordion-collapse collapse{% if loop.first %} show{% endif %}" id="{{ group_id }}">
<div class="ibexa-content-type-selector__list-padding-wrapper">
<ul class="ibexa-content-type-selector__list">
{%- for choice in group_choices|slice(0, 3) -%}
Expand Down

0 comments on commit b1cb62d

Please # to comment.