[TWIG][Attachments] Don't throw event with mimetype in its name

This commit is contained in:
Diogo Peralta Cordeiro 2021-08-18 22:08:22 +01:00
parent aebc5358b5
commit c50e3324ef
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{% set handled = false %}
{% for block in handle_event('ViewAttachment' ~ attachment.getMimetypeMajor() | capitalize , {'attachment': attachment, 'note': note}) %}
{% for block in handle_event('ViewAttachment', {'attachment': attachment, 'note': note}) %}
{% set handled = true %}
{{ block | raw }}
{% endfor %}