From 36fbcf9dae366b7fcdf94167e5fab8126b0d5e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sun, 26 Jan 2014 22:20:17 +0100 Subject: [PATCH] make empty date of birth possible --- Resources/views/Person/list.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/Person/list.html.twig b/Resources/views/Person/list.html.twig index b670305e8..a00f3efd3 100644 --- a/Resources/views/Person/list.html.twig +++ b/Resources/views/Person/list.html.twig @@ -28,7 +28,7 @@ {% endspaceless %} - {{person.dateOfBirth.format(date_format)}} + {{person.dateOfBirth.format(date_format)|default( 'person.without_date_of_birth'|trans )}} {% if person.nationality is not null %} {{person.nationality.label}}