From 52b9532964a5dbbb8397a3fb6c9be3291f96c784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Hrdina?= Date: Tue, 19 Apr 2022 14:10:16 +0000 Subject: [PATCH] feat: fix default email template --- bundle/Resources/views/email/default.html.twig | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bundle/Resources/views/email/default.html.twig b/bundle/Resources/views/email/default.html.twig index 6f2b759f..116dbba0 100644 --- a/bundle/Resources/views/email/default.html.twig +++ b/bundle/Resources/views/email/default.html.twig @@ -1,5 +1,6 @@ -{# event \Netgen\Bundle\InformationCollectionBundle\Event\InformationCollected #} -{# content \eZ\Publish\API\Repository\Values\Content\Content #} +{# @var event \Netgen\InformationCollection\API\Value\Event\InformationCollected #} +{# @var content \eZ\Publish\API\Repository\Values\Content\Content #} +{# @var content_type \eZ\Publish\API\Repository\Values\ContentType\ContentType #} {% block email %} @@ -12,14 +13,14 @@ {{ ez_field_name(content, field_name) }}:
- {% if content_type.fieldDefinitionsByIdentifier[field_name].fieldTypeIdentifier == 'ezselection' %} + {% if content_type.fieldDefinitions.get(field_name).fieldTypeIdentifier == 'ezselection' %} {% set selectionArray=field_value.value|split('-') %} {% if selectionArray|length > 1 %}{% endif %}