Skip to content

Commit 5b2693d

Browse files
authored
Fix DateColumnType throwing exception #197
Fixes regression introduced in 0.28.0. Reported by @maciazek in #197
1 parent 3275669 commit 5b2693d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Resources/views/themes/base.html.twig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,13 @@
519519
{{- data_table_theme_block(data_table, 'icon') -}}
520520
{%- endblock %}
521521

522+
{# @see Kreyu\Bundle\DataTableBundle\Column\Type\DateColumnType #}
523+
{% block column_date_value -%}
524+
{% with { value: value ? value|date(format, timezone) : value } %}
525+
{{- block('column_text_value') -}}
526+
{% endwith %}
527+
{%- endblock %}
528+
522529
{# @see Kreyu\Bundle\DataTableBundle\Column\Type\DateTimeColumnType #}
523530
{% block column_date_time_value -%}
524531
{% with { value: value ? value|date(format, timezone) : value } %}

0 commit comments

Comments
 (0)