Sfoglia il codice sorgente

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

Comparison fix
Fracsi 8 anni fa
parent
commit
205554e8e1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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') %}
                 {% set data_value = value.format('Y-m-d') %}
             {% elseif field_description.type == 'boolean' and value is empty %}
             {% elseif field_description.type == 'boolean' and value is empty %}
                 {% set data_value = 0 %}
                 {% set data_value = 0 %}