Skip to content

Commit

Permalink
Template fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Oct 4, 2024
1 parent 93b617a commit ade38c0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ <h2>{{ add_description.type.title_l10n }} <span
{% endfor %}
{% endmacro %}

{% macro list_vocabulary_values(field, values, field_cfg) %}
{% macro list_vocabulary_values(field, values) %}
{% if values.title_l10n is defined %}
{% set search_url = field | custom_fields_search(values.title_l10n, field_cfg) %}
{% set search_url = field | custom_vocab_fields_search(values.title_l10n, "title") %}
{% if search_url %}
<a href="{{ search_url }}">{{ values.title_l10n | safe }}</a>
{% else %}
Expand Down Expand Up @@ -241,7 +241,7 @@ <h2>{{ add_description.type.title_l10n }} <span
{% endif %}
</dd>
{% elif field_cfg.is_vocabulary %}
<dd>{{ list_vocabulary_values(field_cfg.field, field_value, field_cfg) }}</dd>
<dd>{{ list_vocabulary_values(field_cfg.field, field_value) }}</dd>
{% elif field_value is iterable and field_value|length > 0 and field_value[0] is string %}
<dd>{{ list_string_values(field_value) }}</dd>
{% elif field_value is iterable and field_value|length > 0 and field_value[0] is number %}
Expand Down

0 comments on commit ade38c0

Please sign in to comment.