Skip to content

Commit 267d70c

Browse files
committed
minor #16599 [Form] Update create_form_type_extension.rst (javiereguiluz)
This PR was merged into the 4.4 branch. Discussion ---------- [Form] Update create_form_type_extension.rst backport #16506 to `4.4` Commits ------- ac8a988 minor #16506 [Form] Update create_form_type_extension.rst (issamkhadiri1989)
2 parents dbc7d35 + ac8a988 commit 267d70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/create_form_type_extension.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Specifically, you need to override the ``file_widget`` block:
192192

193193
{% block file_widget %}
194194
{{ block('form_widget') }}
195-
{% if image_url is not null %}
195+
{% if image_url is defined and image_url is not null %}
196196
<img src="{{ asset(image_url) }}"/>
197197
{% endif %}
198198
{% endblock %}

0 commit comments

Comments
 (0)