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 dd1f8a0

Browse filesBrowse 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
Copy full SHA for dd1f8a0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector
Expand file treeCollapse file tree

1 file changed

+1
-1
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
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.