Skip to content

Commit

Permalink
IBX-9326: The image link with a class is producing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Jan 30, 2025
1 parent 7a5d9eb commit 3177ea4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bundle/Core/Resources/views/content_fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@
href="{{ parameters.ezlink.href }}"
{% if parameters.ezlink.title is defined %} title="{{ parameters.ezlink.title|e('html_attr') }}"{% endif %}
{% if parameters.ezlink.target is defined %} target="{{ parameters.ezlink.target|e('html_attr') }}"{% endif %}
{% if parameters.ezlink.class is defined %} class="{{ parameters.ezlink.class|e('html_attr') }}"{% endif %}
>
{% endif %}
<img src="{{ src }}" alt="{{ parameters.alternativeText|default(field.value.alternativeText) }}" {% for attrname, attrvalue in attrs %}{% if attrvalue %}{{ attrname }}="{{ attrvalue }}" {% endif %}{% endfor %}/>
Expand Down

0 comments on commit 3177ea4

Please sign in to comment.