diff --git a/src/Resources/views/CRUD/base_show_field.html.twig b/src/Resources/views/CRUD/base_show_field.html.twig index c72efb80d1..a5c50cae92 100644 --- a/src/Resources/views/CRUD/base_show_field.html.twig +++ b/src/Resources/views/CRUD/base_show_field.html.twig @@ -32,7 +32,7 @@ file that was distributed with this source code. data-readmore-more="{{ collapse.more|default('read_more')|trans({}, 'SonataAdminBundle') }}" data-readmore-less="{{ collapse.less|default('read_less')|trans({}, 'SonataAdminBundle') }}"> {% block field_value %} - {% if field_description.option('safe', false) %}{{ value|raw }}{% else %}{{ value|nl2br }}{% endif %} + {% if field_description.option('safe', false) %}{{ value|raw }}{% else %}{{ value|default('')|nl2br }}{% endif %} {% endblock %} {% else %}