[TWIG][Attachments] Don't throw event with mimetype in its name
This commit is contained in:
parent
bc1fb007aa
commit
e4b2821657
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user