Skip to content

Commit

Permalink
Fixed a problem when displaying the number of elements of
Browse files Browse the repository at this point in the history
associated Doctrine collections with zero elements (now the backend
displays a badge with the number "0")
  • Loading branch information
javiereguiluz committed May 20, 2015
1 parent e2d5a40 commit f9090ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/default/field_association.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if value is iterable and value|length > 1 %}
{% if value is iterable %}
<span class="badge">{{ value|length }}</span>
{% elseif link_parameters is defined %}
<a href="{{ path('admin', link_parameters) }}">{{ value|easyadmin_truncate }}</a>
Expand Down

0 comments on commit f9090ac

Please sign in to comment.