فهرست منبع

Merge pull request #500 from EmmanuelVella/currency

Fix list currency template if value is null
Thomas 13 سال پیش
والد
کامیت
eac43f9fb3
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  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 %}