Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 04c86fa

Browse filesBrowse files
committed
[WebProfilerBundle][Form] The form data collector return serialized object when profiler bundle attends object
1 parent 01964c8 commit 04c86fa
Copy full SHA for 04c86fa

File tree

1 file changed

+6
-0
lines changed
Filter options
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector

1 file changed

+6
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
{% from _self import form_tree_entry, form_tree_details %}
44

55
{% block toolbar %}
6+
{% if collector.data is not iterable %}
7+
{% set unserialia = collector.unserialize(collector.data) %}
8+
{% endif %}
69
{% if collector.data.nb_errors > 0 or collector.data.forms|length %}
710
{% set status_color = collector.data.nb_errors ? 'red' : '' %}
811
{% set icon %}
@@ -28,6 +31,9 @@
2831
{% endblock %}
2932

3033
{% block menu %}
34+
{% if collector.data is not iterable %}
35+
{% set unserialia = collector.unserialize(collector.data) %}
36+
{% endif %}
3137
<span class="label label-status-{{ collector.data.nb_errors ? 'error' }} {{ collector.data.forms is empty ? 'disabled' }}">
3238
<span class="icon">{{ include('@WebProfiler/Icon/form.svg') }}</span>
3339
<strong>Forms</strong>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.