소스 검색

Fix list currency template if value is null

Emmanuel Vella 13 년 전
부모
커밋
0b9256f046
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 %}