8000 bug #17455 Fixed form types in profiler (javiereguiluz) · gnat42/symfony@1dfb8d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1dfb8d2

Browse files
committed
bug symfony#17455 Fixed form types in profiler (javiereguiluz)
This PR was merged into the 3.0 branch. Discussion ---------- Fixed form types in profiler | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#17453 | License | MIT | Doc PR | - This only affects to Symfony 3.0 and higher. | Before | After | --------- | ------- | ![form_types_before](https://cloud.githubusercontent.com/assets/73419/12448020/aa59c134-bf73-11e5-8ce4-205a97c50339.png) | ![form_types_after](https://cloud.githubusercontent.com/assets/73419/12448024/acad1a6c-bf73-11e5-98cc-2d9ba11d1e29.png) Commits ------- 12d447d Fixed form types in profiler
2 parents 98f86c0 + 12d447d commit 1dfb8d2

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
<div class="toggle-icon empty"></div>
438438
{% endif %}
439439

440-
{{ name|default('(no name)') }} {% if data.type_class is defined and data.type is defined %}[<abbr title="{{ data.type_class }}">{{ data.type }}</abbr>]{% endif %}
440+
{{ name|default('(no name)') }} {% if data.type_class is defined %}[<abbr title="{{ data.type_class }}">{{ data.type_class|split('\\')|last }}</abbr>]{% endif %}
441441

442442
{% if data.errors is defined and data.errors|length > 0 %}
443443
<div class="badge-error">{{ data.errors|length }}</div>

0 commit comments

Comments
 (0)
0