Explorar o código

Fix list currency template if value is null

Emmanuel Vella %!s(int64=13) %!d(string=hai) anos
pai
achega
0b9256f046
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      Resources/views/CRUD/list_currency.html.twig

+ 4 - 2
Resources/views/CRUD/list_currency.html.twig

@@ -12,5 +12,7 @@ file that was distributed with this source code.
 {% extends 'SonataAdminBundle:CRUD:base_list_field.html.twig' %}
 
 {% block field %}
-    {{ field_description.options.currency }} {{ value }}
-{% endblock %}
+    {% if value is not null %}
+        {{ field_description.options.currency }} {{ value }}
+    {% endif %}
+{% endblock %}