From 5129dc4b7f5f5921905f6e5bdc63d64ad281ac82 Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Mon, 30 May 2022 10:33:29 +0200 Subject: [PATCH] IBX-2928: Provided tooltip fallback for Content fieldtype description (#2048) * IBX-2928: Provided tooltip fallback for Content fieldtype description * IBX-2928: Simplified solution --- .../views/themes/admin/content/form_fields.html.twig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bundle/Resources/views/themes/admin/content/form_fields.html.twig b/src/bundle/Resources/views/themes/admin/content/form_fields.html.twig index ba76008148..f94494bd2a 100644 --- a/src/bundle/Resources/views/themes/admin/content/form_fields.html.twig +++ b/src/bundle/Resources/views/themes/admin/content/form_fields.html.twig @@ -102,8 +102,9 @@
{% with { 'compound': false } %}{{- block('form_label') }}{% endwith %} - {% if field_type_descriptions[fieldtype.vars.languageCode] is defined and field_type_descriptions[fieldtype.vars.languageCode] != '' %} - + {% set description = field_type_descriptions[fieldtype.vars.languageCode]|default(field_type_descriptions|first) %} + {% if description is not null %} +