浏览代码

Fix for #4433, bug introduced in #4415 (#4435)

Comparison fix
Fracsi 8 年之前
父节点
当前提交
205554e8e1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Resources/views/CRUD/base_list_field.html.twig

+ 1 - 1
Resources/views/CRUD/base_list_field.html.twig

@@ -48,7 +48,7 @@ file that was distributed with this source code.
                 })
             ) %}
 
-            {% if field_description == 'date' and value is not empty %}
+            {% if field_description.type == 'date' and value is not empty %}
                 {% set data_value = value.format('Y-m-d') %}
             {% elseif field_description.type == 'boolean' and value is empty %}
                 {% set data_value = 0 %}