Browse Source

Fix list currency template if value is null

Emmanuel Vella 13 years ago
parent
commit
0b9256f046
1 changed files with 4 additions and 2 deletions
  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' %}
 {% extends 'SonataAdminBundle:CRUD:base_list_field.html.twig' %}
 
 
 {% block field %}
 {% block field %}
-    {{ field_description.options.currency }} {{ value }}
-{% endblock %}
+    {% if value is not null %}
+        {{ field_description.options.currency }} {{ value }}
+    {% endif %}
+{% endblock %}