From f9090ac383b27ce781392d7ae38fc78aff51ef9e Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 20 May 2015 16:55:32 +0200 Subject: [PATCH] Fixed a problem when displaying the number of elements of associated Doctrine collections with zero elements (now the backend displays a badge with the number "0") --- Resources/views/default/field_association.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/default/field_association.html.twig b/Resources/views/default/field_association.html.twig index 324ff79876..091e84d0c1 100644 --- a/Resources/views/default/field_association.html.twig +++ b/Resources/views/default/field_association.html.twig @@ -1,4 +1,4 @@ -{% if value is iterable and value|length > 1 %} +{% if value is iterable %} {{ value|length }} {% elseif link_parameters is defined %} {{ value|easyadmin_truncate }}