From 8772790de3b678e7b89e9a3e1beb3f56e927fcb7 Mon Sep 17 00:00:00 2001 From: Dariusz Szut Date: Fri, 27 Sep 2024 12:30:20 +0200 Subject: [PATCH] IBX-7447: Hide allowed extensions if no extensions are defined in image fieldtype (#1353) --- .../views/themes/admin/ui/field_type/edit/binary_base.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/binary_base.html.twig b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/binary_base.html.twig index 2adfa368f6..64e4c3880c 100644 --- a/src/bundle/Resources/views/themes/admin/ui/field_type/edit/binary_base.html.twig +++ b/src/bundle/Resources/views/themes/admin/ui/field_type/edit/binary_base.html.twig @@ -57,7 +57,7 @@
{{ 'fieldtype.binary_base.max_file_size'|trans({'%size%': max_file_size|default(0)|ibexa_file_size(2)})|desc('Max file size: %size%') }}
{% endif %} - {% if image_extensions is defined %} + {% if image_extensions is defined and image_extensions is not empty %} {% set extensions = [] %} {% for mime_type in mime_types %}