Skip to content

Commit

Permalink
minor #26373 [WebProfilerBundle] fix wrong variable for profiler coun…
Browse files Browse the repository at this point in the history
…ting 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
  • Loading branch information
nicolas-grekas committed Mar 2, 2018
2 parents 0c5f839 + 0fb83af commit 79e8545
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -108,9 +108,9 @@
var rows = document.createDocumentFragment();
if (requestStack.length) {
var nbOfAjaxRequest = tbodies.rows.length;
var nbOfAjaxRequest = tbody.rows.length;
if (nbOfAjaxRequest >= 100) {
tbodies.deleteRow(nbOfAjaxRequest - 1);
tbody.deleteRow(nbOfAjaxRequest - 1);
}
for (var i = 0; i < requestStack.length; i++) {
Expand Down

0 comments on commit 79e8545

Please sign in to comment.