8000 minor #26373 [WebProfilerBundle] fix wrong variable for profiler coun… · symfony/symfony@79e8545 · GitHub
[go: up one dir, main page]

Skip to content

Commit 79e8545

Browse files
minor #26373 [WebProfilerBundle] fix wrong variable for profiler counting ajax requests (Marin Nicolae)
This PR was squashed before being merged into the 2.7 branch (closes #26373). Discussion ---------- [WebProfilerBundle] fix wrong variable for profiler counting ajax requests | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #26364 | License | MIT | Doc PR | symfony/symfony-docs#... Symfony WebProfiler base js change variable tbodies to tbody for counting Ajax Requests. Commits ------- 0fb83af [WebProfilerBundle] fix wrong variable for profiler counting ajax requests
2 parents 0c5f839 + 0fb83af commit 79e8545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@
108108
var rows = document.createDocumentFragment();
109109
110110
if (requestStack.length) {
111-
var nbOfAjaxRequest = tbodies.rows.length;
111+
var nbOfAjaxRequest = tbody.rows.length;
112112
if (nbOfAjaxRequest >= 100) {
113-
tbodies.deleteRow(nbOfAjaxRequest - 1);
113+
tbody.deleteRow(nbOfAjaxRequest - 1);
114114
}
115115
116116
for (var i = 0; i < requestStack.length; i++) {

0 commit comments

Comments
 (0)
0