Skip to content
Permalink
Browse files

bug #30380 [WebProfilerBundle] Fix row update on finish ajax request …

…(yceruto)

This PR was merged into the 4.3-dev branch.

Discussion
----------

[WebProfilerBundle] Fix row update on finish ajax request

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

```
Uncaught TypeError: Cannot read property 'setAttribute' of undefined
    at finishAjaxRequest
    at XMLHttpRequest.<anonymous>
```

Continuation of #30130

Commits
-------

ff9e494 Fix row update on finish ajax request
  • Loading branch information...
fabpot committed Feb 26, 2019
2 parents 5754846 + ff9e494 commit 91c5b14d8b6e9016c31d46ad8576ecf0ce836221
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig
@@ -212,11 +212,11 @@
pendingRequests--;
var row = request.DOMNode;
/* Unpack the children from the row */
var profilerCell = row.children[0];
var methodCell = row.children[1];
var statusCodeCell = row.children[3];
var profilerCell = row.children[1];
var methodCell = row.children[2];
var statusCodeCell = row.children[4];
var statusCodeElem = statusCodeCell.children[0];
var durationCell = row.children[5];
var durationCell = row.children[6];
if (request.error) {
row.className = 'sf-ajax-request sf-ajax-request-error';

0 comments on commit 91c5b14

Please sign in to comment.
You can’t perform that action at this time.