8000 bug #48271 [WebProfilerBundle] Fix form panel when there are no view … · symfony/symfony@dd1f8a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit dd1f8a0

Browse files
committed
bug #48271 [WebProfilerBundle] Fix form panel when there are no view vars (nicolas-grekas)
This PR was merged into the 6.2 branch. Discussion ---------- [WebProfilerBundle] Fix form panel when there are no view vars | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- a1498da [WebProfilerBundle] Fix form panel when there are no view vars
2 parents 648d84f + a1498da commit dd1f8a0

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
@@ -714,7 +714,7 @@
714714
</tr>
715715
</thead>
716716
<tbody>
717-
{% for variable, value in data.view_vars %}
717+
{% for variable, value in data.view_vars ?? [] %}
718718
<tr>
719719
<th scope="row">{{ variable }}</th>
720720
<td>{{ profiler_dump(value) }}</td>

0 commit comments

Comments
 (0)
0