Skip to content

Commit

Permalink
IBX-7447: Hide allowed extensions if no extensions are defined in ima…
Browse files Browse the repository at this point in the history
…ge fieldtype
  • Loading branch information
dew326 committed Sep 25, 2024
1 parent 0a7b7a0 commit 61e4743
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@
{% if max_file_size is defined and max_file_size > 0 %}
<div class="ibexa-data-source__message--filesize">{{ 'fieldtype.binary_base.max_file_size'|trans({'%size%': max_file_size|default(0)|ibexa_file_size(2)})|desc('Max file size: %size%') }}</div>
{% 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 %}
Expand Down

0 comments on commit 61e4743

Please sign in to comment.