Skip to content

Commit

Permalink
[Form][WebProfiler] Empty form names fix
Browse files Browse the repository at this point in the history
When a Form had no name, the markup was broken in the profiler,
making the form tree ugly.
  • Loading branch information
kix committed Nov 4, 2014
1 parent 3fb5ad4 commit 3800402
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -420,7 +420,7 @@
{% else %}
<div class="toggle-icon empty"></div>
{% endif %}
{{ name }}
{{ name|default('(no name)') }}
{% if data.errors is defined and data.errors|length > 0 %}
<div class="badge-error">{{ data.errors|length }}</div>
{% endif %}
Expand Down

0 comments on commit 3800402

Please sign in to comment.