diff --git a/Resources/views/Collector/swiftmailer.html.twig b/Resources/views/Collector/swiftmailer.html.twig index 7bef4667..bc1aa49b 100644 --- a/Resources/views/Collector/swiftmailer.html.twig +++ b/Resources/views/Collector/swiftmailer.html.twig @@ -197,7 +197,7 @@
Headers -
{% for header in message.headers.all if (header.fieldName ?? '') not in ['Subject', 'From', 'To'] %}
+                                
{% for header in message.headers.all|filter(header => (header.fieldName ?? '') not in ['Subject', 'From', 'To']) %}
                                     {{- header -}}
                                 {% endfor %}
@@ -230,7 +230,7 @@ - {% for messagePart in message.children if messagePart.contentType in ['text/plain', 'text/html'] %} + {% for messagePart in message.children|filter(messagePart => messagePart.contentType in ['text/plain', 'text/html']) %}
Alternative part ({{ messagePart.contentType }})